From d9807e34e5bfd7cff4dbbb7bfc00e7a4847f8c2e Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 Apr 2015 22:35:04 -0700 Subject: don't warn folks about the webaddress observer tag. We need it in constructed urls. --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index e79e709da..47a1fd223 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -490,7 +490,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) { $Text = str_replace('[observer.url]',$observer['xchan_url'], $Text); $Text = str_replace('[observer.name]',$s1 . $observer['xchan_name'] . $s2, $Text); $Text = str_replace('[observer.address]',$s1 . $observer['xchan_addr'] . $s2, $Text); - $Text = str_replace('[observer.webname]',$s1 . substr($observer['xchan_addr'],0,strpos($observer['xchan_addr'],'@')) . $s2, $Text); + $Text = str_replace('[observer.webname]', substr($observer['xchan_addr'],0,strpos($observer['xchan_addr'],'@')), $Text); $Text = str_replace('[observer.photo]',$s1 . '[zmg]'.$observer['xchan_photo_l'].'[/zmg]' . $s2, $Text); } else { $Text = str_replace('[observer.baseurl]', '', $Text); -- cgit v1.2.3