This commit is contained in:
barisusakli
2015-09-29 18:22:41 -04:00
parent 714efd0d0e
commit ca294fc6ec
15 changed files with 128 additions and 115 deletions

View File

@@ -6,6 +6,7 @@ var fs = require('fs'),
async = require('async'),
winston = require('winston'),
nconf = require('nconf'),
file = require('../file'),
utils = require('../../public/src/utils');
@@ -107,7 +108,7 @@ module.exports = function(Plugins) {
var realPath = pluginData.staticDirs[mappedPath];
var staticDir = path.join(pluginPath, realPath);
fs.exists(staticDir, function(exists) {
file.exists(staticDir, function(exists) {
if (exists) {
Plugins.staticDirs[pluginData.id + '/' + mappedPath] = staticDir;
} else {