mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update shortcodes.md
Replaced $args with $arguments as $args wasn't correct
This commit is contained in:
parent
95097a4a0e
commit
52624e7505
@ -85,8 +85,8 @@ plus some `width` and `height` arguments. We'll add defaults to those in our sho
|
||||
urlencode($address),
|
||||
urlencode($address)
|
||||
);
|
||||
$width = (isset($args['width']) && $args['width']) ? $args['width'] : 400;
|
||||
$height = (isset($args['height']) && $args['height']) ? $args['height'] : 300;
|
||||
$width = (isset($arguments['width']) && $arguments['width']) ? $arguments['width'] : 400;
|
||||
$height = (isset($arguments['height']) && $arguments['height']) ? $arguments['height'] : 300;
|
||||
return sprintf(
|
||||
'<iframe width="%d" height="%d" src="%s" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe>',
|
||||
$width,
|
||||
|
Loading…
Reference in New Issue
Block a user