Changeset 12700 for extensions/rv_gmaps/trunk/include/functions.php
- Timestamp:
- Dec 7, 2011, 5:39:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_gmaps/trunk/include/functions.php
r3447 r12700 36 36 function rvm_make_map_picture_url($params) 37 37 { 38 global $conf;39 if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )40 return "";41 38 $map_url = make_picture_url($params); 42 39 return add_url_params($map_url, array('map'=>null) ); … … 45 42 function rvm_duplicate_map_picture_url() 46 43 { 47 global $conf;48 if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )49 return "";50 44 $map_url = duplicate_picture_url(); 51 45 return add_url_params($map_url, array('map'=>null) ); … … 55 49 { 56 50 global $conf, $rvm_dir; 57 if ( empty($conf['gmaps_api_key']) and $_SERVER['SERVER_ADDR']!='127.0.0.1' )58 return "";59 51 $url = get_root_url().'map'; 60 52 if ($conf['php_extension_in_urls'])
Note: See TracChangeset
for help on using the changeset viewer.