Fixed test - again
This commit is contained in:
parent
45dda2c064
commit
992b6eed1d
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ class Images
|
||||||
* @param string $description
|
* @param string $description
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = ''): string
|
public static function getBBCodeByUrl(string $photo, string $preview = null, string $description = null): string
|
||||||
{
|
{
|
||||||
if (!empty($preview)) {
|
if (!empty($preview)) {
|
||||||
return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]';
|
return '[url=' . $photo . '][img=' . $preview . ']' . $description . '[/img][/url]';
|
||||||
|
|
Loading…
Reference in a new issue