second try

pull/1/head
Friendika 2011-08-23 01:52:59 -07:00
parent 124881903e
commit c55d24b451
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ function bb2diaspora($Text,$preserve_nl = false) {
$Text = preg_replace("(\[url\=([$URLSearchString]*)\](.*?)\[/url\])", '[$2]($1)', $Text); $Text = preg_replace("(\[url\=([$URLSearchString]*)\](.*?)\[/url\])", '[$2]($1)', $Text);
// $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('Image/photo: ') . '$1', $Text); // $Text = preg_replace("/\[img\](.*?)\[\/img\]/", t('Image/photo: ') . '$1', $Text);
$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '', $Text);
// Perform MAIL Search // Perform MAIL Search
$Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text); $Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text);