X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FImages.php;h=aed72f065b7c8c0810efa22c0aaa938ca6c7c46c;hb=911ed3d6ba98149ed6d400d554e7a0e10bd1c273;hp=f468e69c2de1a65a00bd8587a184d81fe9daa47f;hpb=3554b615084fd8704ee9b95aa538c47099d5bce5;p=friendica.git diff --git a/src/Util/Images.php b/src/Util/Images.php index f468e69c2d..aed72f065b 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -343,11 +343,13 @@ class Images * @param string $preview Preview image URL * @param string $description * @return string - */ public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = null): string + */ + public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string { if (!empty($preview)) { return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]'; } + return '[img=' . $photo . ']' . $description . '[/img]'; } }