diff options
author | John McLear <john@mclear.co.uk> | 2015-12-21 17:32:05 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-12-21 17:32:05 +0000 |
commit | b519f9f156607643d46aa30f843e599ab40e73c3 (patch) | |
tree | dcd6ec076c476da7185bd90a20fb215d42a1fd78 /src/node | |
parent | 577102b025a1a2ad949e28df7dced5ff63127a8b (diff) | |
download | etherpad-lite-b519f9f156607643d46aa30f843e599ab40e73c3.zip |
include req and res in export convert hook
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/handler/ExportHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index 5e7d6de4..8f91ced2 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -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; |