From a82823ede267490a2afb753cc70f69374be7349b Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 12 May 2014 15:15:10 +0100 Subject: use full string not first char --- src/node/handler/ExportHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node/handler/ExportHandler.js') diff --git a/src/node/handler/ExportHandler.js b/src/node/handler/ExportHandler.js index 11d247d6..d0d8ddaa 100644 --- a/src/node/handler/ExportHandler.js +++ b/src/node/handler/ExportHandler.js @@ -52,7 +52,7 @@ exports.doExport = function(req, res, padId, type) hooks.aCallFirst("exportFileName", padId, function(err, hookFileName){ // if fileName is set then set it to the padId, note that fileName is returned as an array. - if(hookFileName[0]) fileName = hookFileName[0]; + if(hookFileName[0]) fileName = hookFileName; } ); -- cgit v1.2.3