diff --git a/include/template_processor.php b/include/template_processor.php index 7f270fb4b3..28c3f07ddd 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); } diff --git a/mod/contacts.php b/mod/contacts.php index c8edea1518..ce352fe204 100755 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -504,8 +504,8 @@ function contacts_content(&$a) { 'name' => $rr['name'], 'username' => $rr['name'], 'sparkle' => $sparkle, - 'url' => $url, - 'item' => $rr, + 'itemurl' => $rr['url'], + 'network' => network_to_name($rr['network']), ); } diff --git a/view/contact_template.tpl b/view/contact_template.tpl index d6f114d6eb..f4c0670bfe 100755 --- a/view/contact_template.tpl +++ b/view/contact_template.tpl @@ -17,8 +17,8 @@
$contact.name
-
$contact.item.url
-
$contact.item.network|network_to_name
+
$contact.itemurl
+
$contact.network