mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fixed serverside templates.js bug that prevented blocks from being defined
This commit is contained in:
@@ -210,7 +210,7 @@
|
||||
data = template.match(regex);
|
||||
if (data == null) return;
|
||||
|
||||
if (block !== undefined) self.blocks[block] = data[0];
|
||||
if (self.blocks && block !== undefined) self.blocks[block] = data[0];
|
||||
|
||||
data = data[0]
|
||||
.replace("<!-- BEGIN " + block + " -->", "")
|
||||
|
||||
Reference in New Issue
Block a user