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