You are here

function legacy_gmap_views_protocol in GMap Module 7.2

Determine the site protocol (http or https).

File

tests/inc/gmap_defaults.inc, line 153
Contains gmap_defaults.inc

Namespace

tests\inc

Code

function legacy_gmap_views_protocol() {
  return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
}