mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Use new exportAvailable() check to include check for SOffice along with Abiword in importexport hook
This commit is contained in:
parent
313f390e7a
commit
d6033de0da
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//if abiword is disabled, and this is a format we only support with abiword, output a message
|
//if abiword is disabled, and this is a format we only support with abiword, output a message
|
||||||
if (settings.abiword == null &&
|
if (settings.exportAvailable() == "no" &&
|
||||||
["odt", "pdf", "doc"].indexOf(req.params.type) !== -1) {
|
["odt", "pdf", "doc"].indexOf(req.params.type) !== -1) {
|
||||||
res.send("Abiword is not enabled at this Etherpad instance. Set the path to Abiword in settings.json to enable this feature");
|
res.send("This export is not enabled at this Etherpad instance. Set the path to Abiword or SOffice in settings.json to enable this feature");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue