Merge pull request #2150 from ether/export-file-name-hook

Server side hook to modify the export file name
This commit is contained in:
John McLear 2014-06-16 16:47:15 +01:00
commit 44cb676ba2
3 changed files with 185 additions and 157 deletions

View file

@ -98,7 +98,7 @@ exports.doImport = function(req, res, padId)
}
},
function(callback){
destFile = path.join(tmpDirectory, "eplite_import_" + randNum + ".htm");
destFile = path.join(tmpDirectory, "etherpad_import_" + randNum + ".htm");
// Logic for allowing external Import Plugins
hooks.aCallAll("import", {srcFile: srcFile, destFile: destFile}, function(err, result){