Update src/Util/Images.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
3554b61508
commit
45dda2c064
1 changed files with 2 additions and 1 deletions
|
@ -343,7 +343,8 @@ 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]';
|
||||
|
|
Loading…
Reference in a new issue