removed http...

This commit is contained in:
Sebastian Kalicki 2018-10-02 05:19:27 +02:00 committed by GitHub
parent c6c9ce8fbf
commit 9051fb923d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
);