mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #6331
This commit is contained in:
@@ -237,9 +237,6 @@ middleware.templatesOnDemand = function (req, res, next) {
|
|||||||
fs.readFile(tplPath, 'utf8', cb);
|
fs.readFile(tplPath, 'utf8', cb);
|
||||||
},
|
},
|
||||||
function (source, cb) {
|
function (source, cb) {
|
||||||
if (!source) {
|
|
||||||
return cb(new Error('[[error:templatesOnDemand.source-template-empty, ' + tplPath + ']]'));
|
|
||||||
}
|
|
||||||
Benchpress.precompile({
|
Benchpress.precompile({
|
||||||
source: source,
|
source: source,
|
||||||
minify: global.env !== 'development',
|
minify: global.env !== 'development',
|
||||||
|
|||||||
Reference in New Issue
Block a user