diff --git a/boot/boot.js b/boot/boot.js index ab403aa5ae8..41d330243a6 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -928,7 +928,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) { moduleInfo.definition(moduleInfo,moduleInfo.exports,sandbox.require); } else if(typeof moduleInfo.definition === "string") { // String moduleInfo.exports = _exports; - $tw.utils.evalSandboxed(moduleInfo.definition,sandbox,tiddler.fields.title); + $tw.utils.evalSandboxed(moduleInfo.definition,sandbox,tiddler.fields.filepath || tiddler.fields.title); if(sandbox.module.exports) { moduleInfo.exports = sandbox.module.exports; //more codemirror workaround } @@ -2118,6 +2118,9 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) { for(var t=0; t