diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-07-22 17:37:51 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-07-22 17:37:51 +0200 |
commit | 93eda9d9c1deb50cfa36392dbcbc4dc56883160f (patch) | |
tree | 37bc757ce0d92aecae34e1261ebfe3e14c056a21 /include/template_processor.php | |
parent | 6b806708d9b8973ce57fb13fcdfe116c1409b9a0 (diff) | |
download | volse-hubzilla-93eda9d9c1deb50cfa36392dbcbc4dc56883160f.tar.gz volse-hubzilla-93eda9d9c1deb50cfa36392dbcbc4dc56883160f.tar.bz2 volse-hubzilla-93eda9d9c1deb50cfa36392dbcbc4dc56883160f.zip |
Initial work on new UI
Diffstat (limited to 'include/template_processor.php')
-rw-r--r-- | include/template_processor.php | 3 |
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){ |