mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18: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);
|
||||
},
|
||||
function (source, cb) {
|
||||
if (!source) {
|
||||
return cb(new Error('[[error:templatesOnDemand.source-template-empty, ' + tplPath + ']]'));
|
||||
}
|
||||
Benchpress.precompile({
|
||||
source: source,
|
||||
minify: global.env !== 'development',
|
||||
|
||||
Reference in New Issue
Block a user