Skip to content

Commit b519f9f

Browse files
committed
include req and res in export convert hook
1 parent 577102b commit b519f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/handler/ExportHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ exports.doExport = function(req, res, padId, type)
135135
destFile = tempDirectory + "/etherpad_export_" + randNum + "." + type;
136136

137137
// Allow plugins to overwrite the convert in export process
138-
hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile}, function(err, result){
138+
hooks.aCallAll("exportConvert", {srcFile: srcFile, destFile: destFile, req: req, res: res}, function(err, result){
139139
if(!err && result.length > 0){
140140
// console.log("export handled by plugin", destFile);
141141
handledByPlugin = true;

0 commit comments

Comments
 (0)