mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
fixed filter:admin.scripts.get
This commit is contained in:
@@ -39,7 +39,7 @@ middleware.buildHeader = function(req, res, next) {
|
|||||||
plugins.fireHook('filter:admin.scripts.get', [], function(err, scripts) {
|
plugins.fireHook('filter:admin.scripts.get', [], function(err, scripts) {
|
||||||
var arr = [];
|
var arr = [];
|
||||||
scripts.forEach(function(script) {
|
scripts.forEach(function(script) {
|
||||||
arr.push({src: path.join(nconf.get('relative_path'), script)});
|
arr.push({src: nconf.get('url') + script});
|
||||||
});
|
});
|
||||||
|
|
||||||
next(err, arr);
|
next(err, arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user