minor tweak to var names

v1.18.x
Julian Lam 11 years ago
parent 3d40cb095f
commit d1eba104d2

@ -249,10 +249,10 @@ var fs = require('fs'),
jsPaths = scripts.map(function (jsPath) {
if (jsPath.substring(0, 7) === 'plugins') {
var paths = jsPath.split('/'),
pluginID = paths[1];
mappedPath = paths[1];
jsPath = jsPath.replace(path.join('plugins', pluginID), '');
return path.join(plugins.staticDirs[pluginID], jsPath);
jsPath = jsPath.replace(path.join('plugins', mappedPath), '');
return path.join(plugins.staticDirs[mappedPath], jsPath);
} else {
return path.join(__dirname, '..', '/public', jsPath);
}

Loading…
Cancel
Save