mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
revert 01a2791e3a
to avoid random preg internal errors. fix contact_template
This commit is contained in:
parent
a33031634e
commit
42d591d257
3 changed files with 9 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue