mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8763 from kinglozzer/embed-tweak
Replace self:: with static:: for shortcode methods
This commit is contained in:
commit
1b63610c27
@ -114,11 +114,11 @@ class EmbedShortcodeProvider implements ShortcodeHandler
|
|||||||
if (empty($arguments['width']) && $embed->getWidth()) {
|
if (empty($arguments['width']) && $embed->getWidth()) {
|
||||||
$arguments['width'] = $embed->getWidth();
|
$arguments['width'] = $embed->getWidth();
|
||||||
}
|
}
|
||||||
return self::videoEmbed($arguments, $embed->getCode());
|
return static::videoEmbed($arguments, $embed->getCode());
|
||||||
case 'link':
|
case 'link':
|
||||||
return self::linkEmbed($arguments, $embed->getUrl(), $embed->getTitle());
|
return static::linkEmbed($arguments, $embed->getUrl(), $embed->getTitle());
|
||||||
case 'photo':
|
case 'photo':
|
||||||
return self::photoEmbed($arguments, $embed->getUrl());
|
return static::photoEmbed($arguments, $embed->getUrl());
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user