include req and res in export convert hook

pull/2862/head
John McLear 2015-12-21 17:32:05 +00:00
parent 577102b025
commit b519f9f156
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ exports.doExport = function(req, res, padId, type)
destFile = tempDirectory + "/etherpad_export_" + randNum + "." + type;
// Allow plugins to overwrite the convert in export process
hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile}, function(err, result){
hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile, req: req, res: res}, function(err, result){
if(!err && result.length > 0){
// console.log("export handled by plugin", destFile);
handledByPlugin = true;