Ignore:
Timestamp:
Dec 7, 2011, 5:39:56 AM (12 years ago)
Author:
rvelices
Message:

rv_gmaps towards full maps api v3 migration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/include/functions.php

    r3447 r12700  
    3636function rvm_make_map_picture_url($params)
    3737{
    38         global $conf;
    39         if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )
    40                 return "";
    4138        $map_url = make_picture_url($params);
    4239        return add_url_params($map_url, array('map'=>null) );
     
    4542function rvm_duplicate_map_picture_url()
    4643{
    47         global $conf;
    48         if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )
    49                 return "";
    5044        $map_url = duplicate_picture_url();
    5145        return add_url_params($map_url, array('map'=>null) );
     
    5549{
    5650        global $conf, $rvm_dir;
    57         if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )
    58                 return "";
    5951        $url = get_root_url().'map';
    6052        if ($conf['php_extension_in_urls'])
Note: See TracChangeset for help on using the changeset viewer.