mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
removed http...
This commit is contained in:
parent
c6c9ce8fbf
commit
9051fb923d
@ -20,8 +20,7 @@ use SilverStripe\View\Parsers\ShortcodeParser;
|
||||
|
||||
ShortcodeParser::get('default')->register('googlemap', function($arguments, $address, $parser, $shortcode) {
|
||||
$iframeUrl = sprintf(
|
||||
'%s://maps.google.com/maps?q=%s&hnear=%s&ie=UTF8&hq=&t=m&z=14&output=embed',
|
||||
(isset($_SERVER['HTTPS'])) ? 'https': 'http',
|
||||
'//maps.google.com/maps?q=%s&hnear=%s&ie=UTF8&hq=&t=m&z=14&output=embed',
|
||||
urlencode($address),
|
||||
urlencode($address)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user