Skip to content

Node.js based forum software built for the modern web

fixed another issues in templates.js causing grief in topics admin view

psychobunnyf732ab4d5aef
diff --git a/public/src/templates.js b/public/src/templates.js
index 3c6aa35cd2..418018dded 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -252,8 +252,9 @@
} else if (data[d].constructor == Array) {
namespace += d + '.';
- regex = makeRegex(d),
- block = getBlock(regex, namespace, template)
+ var regex = makeRegex(d),
+ block = getBlock(regex, namespace.substring(0, namespace.length-1), template);
+
if (block == null) {
namespace = namespace.replace(d + '.', '');
continue;