]> git.mxchange.org Git - friendica.git/commitdiff
Some more beautification.
authorMichael Vogel <icarus@dabo.de>
Tue, 3 May 2016 19:57:08 +0000 (21:57 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 3 May 2016 19:57:08 +0000 (21:57 +0200)
include/bbcode.php

index 62ee4da90cd6d23394b2e15b6cf70929635322e1..c5c93ca64e0e81e051d88b1b35bf5cc2568603a9 100644 (file)
@@ -103,9 +103,12 @@ function bb_remove_share_information($Text, $plaintext = false, $nolink = false)
 
        $title = htmlentities($data["title"], ENT_QUOTES, 'UTF-8', false);
        $text = htmlentities($data["text"], ENT_QUOTES, 'UTF-8', false);
-
        if ($plaintext or strstr($text, $title))
                $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"] == ""))
                return $data["title"].$data["after"];