From 93eda9d9c1deb50cfa36392dbcbc4dc56883160f Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Fri, 22 Jul 2011 17:37:51 +0200 Subject: Initial work on new UI --- include/template_processor.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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){ -- cgit v1.2.3