aboutsummaryrefslogtreecommitdiffstats
path: root/include/template_processor.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-26 02:27:12 -0700
committerfriendica <info@friendica.com>2012-07-26 02:27:12 -0700
commit4ec7ef52235f04093da4beb4645755304ef8aa42 (patch)
tree9d732abeb45d0fb69de4299af877f8939f73b2a3 /include/template_processor.php
parentacfe9e77bf6b3e0ff664ccd3e24490570c027b7f (diff)
downloadvolse-hubzilla-4ec7ef52235f04093da4beb4645755304ef8aa42.tar.gz
volse-hubzilla-4ec7ef52235f04093da4beb4645755304ef8aa42.tar.bz2
volse-hubzilla-4ec7ef52235f04093da4beb4645755304ef8aa42.zip
more fixes for the legacy stuff as we push forward to new stuff
Diffstat (limited to 'include/template_processor.php')
-rw-r--r--include/template_processor.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/template_processor.php b/include/template_processor.php
index e891b8bf2..9c6e27916 100644
--- a/include/template_processor.php
+++ b/include/template_processor.php
@@ -189,7 +189,7 @@
}
public function replace($s, $r) {
-// $t1 = dba_timer();
+ $t1 = dba_timer();
$this->r = $r;
$s = $this->_build_nodes($s);
@@ -200,15 +200,15 @@
// remove comments block
$s = preg_replace('/{#[^#]*#}/', "" , $s);
-// $t2 = dba_timer();
+ $t2 = dba_timer();
// replace strings recursively (limit to 10 loops)
$os = ""; $count=0;
- while($os!=$s && $count<10){
+ while(($os !== $s) && $count<10){
$os=$s; $count++;
$s = $this->var_replace($s);
}
-// $t3 = dba_timer();
+ $t3 = dba_timer();
// logger('macro timer: ' . sprintf('%01.4f %01.4f',$t3 - $t2, $t2 - $t1));
return $s;