@@ -13,8 +13,8 @@ |
||
13 | 13 | public static function handle_shortcode($arguments, $content, $parser, $shortcode, $extra = array()) |
14 | 14 | { |
15 | 15 | $string = parent::handle_shortcode($arguments, $content, $parser, $shortcode, $extra); |
16 | - $string = str_replace('></iframe' , ' loading="lazy"></iframe', $string); |
|
17 | - $string = str_replace('></iframe' , ' allowfullscreen></iframe', $string); |
|
16 | + $string = str_replace('></iframe', ' loading="lazy"></iframe', $string); |
|
17 | + $string = str_replace('></iframe', ' allowfullscreen></iframe', $string); |
|
18 | 18 | |
19 | 19 | return $string; |
20 | 20 | } |
@@ -4,4 +4,4 @@ |
||
4 | 4 | use SilverStripe\View\Parsers\ShortcodeParser; |
5 | 5 | |
6 | 6 | ShortcodeParser::get('default') |
7 | - ->register('embed', [VideoExtras::class, 'handle_shortcode']); |
|
7 | + ->register('embed', [ VideoExtras::class, 'handle_shortcode' ]); |