X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FImages.php;h=aed72f065b7c8c0810efa22c0aaa938ca6c7c46c;hb=e1863951986ba5be173758324a00652bc5af870c;hp=269dbda1998c11ed9d4b12cfc19892e7d0a094c7;hpb=992b6eed1d8bc0201ece8b9043ee70d76bc68a3e;p=friendica.git diff --git a/src/Util/Images.php b/src/Util/Images.php index 269dbda199..aed72f065b 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -344,11 +344,12 @@ class Images * @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]'; } }