Changeset 152506
- Timestamp:
- 09/06/2009 02:53:25 PM (17 years ago)
- File:
-
- 1 edited
-
xml-google-maps/trunk/xmlgooglemaps_helper.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xml-google-maps/trunk/xmlgooglemaps_helper.php
r148666 r152506 65 65 66 66 function tryGetLocalPath($url) { 67 $root_path = ABSPATH; 68 $root_url = get_option('siteurl')."/"; 69 70 $ret = str_replace($root_url,$root_path,$url); 71 72 return $ret; 67 if (defined('ABSPATH')) { 68 $root_path = ABSPATH; 69 $root_url = get_option('siteurl')."/"; 70 71 $ret = str_replace($root_url,$root_path,$url); 72 return $ret; 73 } else { 74 return $url; 75 } 73 76 } 74 77
Note: See TracChangeset
for help on using the changeset viewer.