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