new staticDirs format, @mrwaffle

This commit is contained in:
Julian Lam
2014-02-28 16:21:02 -05:00
parent db0ad5b57c
commit 561b42d0f9
3 changed files with 31 additions and 10 deletions

View File

@@ -174,7 +174,7 @@ var fs = require('fs'),
(function(staticDir) {
fs.exists(staticDir, function(exists) {
if (exists) {
Plugins.staticDirs[mappedPath] = staticDir;
Plugins.staticDirs[path.join(pluginData.id, mappedPath)] = staticDir;
} else {
winston.warn('[plugins/' + pluginData.id + '] Mapped path \'' + mappedPath + ' => ' + staticDir + '\' not found.');
}