1
1
Fork 0

Update src/Util/Images.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2023-05-10 17:06:16 +02:00 committed by GitHub
parent 3554b61508
commit 45dda2c064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -343,7 +343,8 @@ class Images
* @param string $preview Preview image URL * @param string $preview Preview image URL
* @param string $description * @param string $description
* @return string * @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)) { if (!empty($preview)) {
return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]'; return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]';