diff options
author | fabrixxm <fabrix.xm@gmail.com> | 2012-02-27 10:05:27 -0800 |
---|---|---|
committer | fabrixxm <fabrix.xm@gmail.com> | 2012-02-27 10:05:27 -0800 |
commit | e11b51aca14ea36b514fdd4348443f4fae79b2ca (patch) | |
tree | e9b11902c9fe447d1057b8474b85c527a5667cac /include | |
parent | a33031634efef94c0985cd2517f10ccd36b40b5f (diff) | |
parent | 42d591d25761fda0206dc5ab96e7d9b0fc779b42 (diff) | |
download | volse-hubzilla-e11b51aca14ea36b514fdd4348443f4fae79b2ca.tar.gz volse-hubzilla-e11b51aca14ea36b514fdd4348443f4fae79b2ca.tar.bz2 volse-hubzilla-e11b51aca14ea36b514fdd4348443f4fae79b2ca.zip |
Merge pull request #53 from fabrixxm/master
remove template filters support
Diffstat (limited to 'include')
-rwxr-xr-x | include/template_processor.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/template_processor.php b/include/template_processor.php index 7f270fb4b..28c3f07dd 100755 --- a/include/template_processor.php +++ b/include/template_processor.php @@ -160,7 +160,8 @@ krsort($this->nodes); return $s; } - + + /* private function _str_replace($str){ #$this->search,$this->replace, $searchs = $this->search; @@ -183,7 +184,7 @@ } return str_replace($this->search,$this->replace, $str); - } + }*/ public function replace($s, $r) { @@ -205,7 +206,8 @@ $os = ""; $count=0; while($os!=$s && $count<10){ $os=$s; $count++; - $s = $this->_str_replace($s); + //$s = $this->_str_replace($s); + $s = str_replace($this->search, $this->replace, $s); } return template_unescape($s); } |