that's better

This commit is contained in:
friendica
2014-02-08 12:08:07 -08:00
parent e71571f619
commit e346aa7560
2 changed files with 3 additions and 1 deletions

View File

@@ -159,6 +159,8 @@ function red_zrl_callback($matches) {
if($r)
$zrl = true;
}
if($matches[1] === '#^')
$matches[1] = '';
if($zrl)
return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[1] . '#^[url=' . $matches[2] . ']' . $matches[2] . '[/url]';