From 87a08c9528420599870d0af20ab2216f56ee1269 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 3 Jun 2014 16:34:40 -0400 Subject: [PATCH] closes #1636 --- src/meta.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/meta.js b/src/meta.js index 1469d45891..1fe7875ff6 100644 --- a/src/meta.js +++ b/src/meta.js @@ -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);