mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
closes #3663
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user