silly mistake

This commit is contained in:
friendica 2012-03-29 21:18:47 -07:00
parent 168cf3b9d4
commit 9332312ce9

View file

@ -167,8 +167,9 @@ function localize_item(&$item){
}
}
$matches = null;
if(preg_match_all('/@[url=(.*?)]/is',$item['body'],$matches,PREG_SET_ORDER)) {
if(preg_match_all('/@\[url=(.*?)\]/is',$item['body'],$matches,PREG_SET_ORDER)) {
foreach($matches as $mtch) {
if(! strpos($mtch[1],'zrl='))
$item['body'] = str_replace($mtch[0],'@[url=' . zrl($mtch[1]). ']',$item['body']);
}
}