fixes require.js error in ACP

v1.18.x
psychobunny 11 years ago
parent e052d8e5c1
commit 4268d424a3

@ -178,7 +178,7 @@ function handleErrors(err, req, res, next) {
function catch404(req, res, next) {
var relativePath = nconf.get('relative_path');
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);

Loading…
Cancel
Save