minor tweak to var names

This commit is contained in:
Julian Lam
2014-02-02 13:36:47 -05:00
parent 3d40cb095f
commit d1eba104d2

View File

@@ -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);
}