mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
fixed another issues in templates.js causing grief in topics admin view
This commit is contained in:
@@ -252,8 +252,9 @@
|
|||||||
} else if (data[d].constructor == Array) {
|
} else if (data[d].constructor == Array) {
|
||||||
namespace += d + '.';
|
namespace += d + '.';
|
||||||
|
|
||||||
regex = makeRegex(d),
|
var regex = makeRegex(d),
|
||||||
block = getBlock(regex, namespace, template)
|
block = getBlock(regex, namespace.substring(0, namespace.length-1), template);
|
||||||
|
|
||||||
if (block == null) {
|
if (block == null) {
|
||||||
namespace = namespace.replace(d + '.', '');
|
namespace = namespace.replace(d + '.', '');
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user