Some more beautification.

This commit is contained in:
Michael Vogel 2016-05-03 21:57:08 +02:00
parent a7aaf7cc98
commit bed4799728

View file

@ -103,9 +103,12 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false)
$title = htmlentities($data["title"], ENT_QUOTES, 'UTF-8', false); $title = htmlentities($data["title"], ENT_QUOTES, 'UTF-8', false);
$text = htmlentities($data["text"], ENT_QUOTES, 'UTF-8', false); $text = htmlentities($data["text"], ENT_QUOTES, 'UTF-8', false);
if ($plaintext or strstr($text, $title)) if ($plaintext or strstr($text, $title))
$data["title"] = $data["url"]; $data["title"] = $data["url"];
elseif (strstr($title, $text)) {
$data["text"] = $data["title"];
$data["title"] = $data["url"];
}
if (($data["text"] == "") AND ($data["title"] != "") AND ($data["url"] == "")) if (($data["text"] == "") AND ($data["title"] != "") AND ($data["url"] == ""))
return $data["title"].$data["after"]; return $data["title"].$data["after"];