aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/template_processor.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/template_processor.php b/include/template_processor.php
index 83f680f02..f1d2eae4e 100644
--- a/include/template_processor.php
+++ b/include/template_processor.php
@@ -166,6 +166,9 @@
$s = preg_replace_callback('/\|\|([0-9]+)\|\|/', array($this, "_replcb_node"), $s);
if ($s==Null) $this->_preg_error();
+ // remove comments block
+ $s = preg_replace('/{#[^#]*#}/', "" , $s);
+
// replace strings recursively (limit to 10 loops)
$os = ""; $count=0;
while($os!=$s && $count<10){