mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
fixes require.js error in ACP
This commit is contained in:
@@ -178,7 +178,7 @@ function handleErrors(err, req, res, next) {
|
|||||||
function catch404(req, res, next) {
|
function catch404(req, res, next) {
|
||||||
var relativePath = nconf.get('relative_path');
|
var relativePath = nconf.get('relative_path');
|
||||||
var isLanguage = new RegExp('^' + relativePath + '/language/[\\w]{2,}/.*.json'),
|
var isLanguage = new RegExp('^' + relativePath + '/language/[\\w]{2,}/.*.json'),
|
||||||
isClientScript = new RegExp('^' + relativePath + '\\/src\\/forum(\\/admin)?\\/.+\\.js');
|
isClientScript = new RegExp('^' + relativePath + '\\/src\\/.+\\.js');
|
||||||
|
|
||||||
res.status(404);
|
res.status(404);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user