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

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

Loading…
Cancel
Save