Node.js based forum software built for the modern web
clean up conditionals only at the very end of parsing
psychobunny503e59b12b0c
diff --git a/public/src/templates.js b/public/src/templates.jsindex 538bd6b8ac..a004553b7c 100644--- a/public/src/templates.js+++ b/public/src/templates.js@@ -394,11 +394,11 @@var regex = new RegExp("{" + namespace + "[\\s\\S]*?}", 'g');template = template.replace(regex, '');namespace = '';+ } else {+ // clean up all undefined conditionals+ template = template.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');}- // clean up all undefined conditionals- template = template.replace(/<!-- IF([^@]*?)ENDIF([^@]*?)-->/gi, '');-return template;})(data, "", template);