v1.18.x
psychobunny 11 years ago
parent b537666e5c
commit 87a08c9528

@ -268,10 +268,13 @@ var fs = require('fs'),
}, function(err, rjsFiles) { }, function(err, rjsFiles) {
rjsFiles = rjsFiles.forum.concat(rjsFiles.modules); rjsFiles = rjsFiles.forum.concat(rjsFiles.modules);
rjsFiles = rjsFiles.map(function(file) { rjsFiles.forEach(function(file, i) {
return path.join('src', file.replace(rjsPath, '')); rjsFiles[i] = path.join('src', file.replace(rjsPath, ''));
if (rjsFiles[i].match('admin')) {
delete rjsFiles[i];
}
}); });
Meta.js.scripts = Meta.js.scripts.concat(rjsFiles); Meta.js.scripts = Meta.js.scripts.concat(rjsFiles);
callback(err); callback(err);

Loading…
Cancel
Save