Changeset 10551 for extensions/GMaps/gmaps_ajax.php
- Timestamp:
- Apr 21, 2011, 11:16:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_ajax.php
r7616 r10551 19 19 */ 20 20 21 // in this case, PHPWG_ROOT_PATH must be declared as an absolute path... 21 22 define('PHPWG_ROOT_PATH',dirname(dirname(dirname(__FILE__))).'/'); 22 23 … … 871 872 } 872 873 873 $file=GPCCore::getPiwigoSystemPath(). self::KML_DIRECTORY.$file;874 $file=GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$file; 874 875 875 876 if(file_exists($file)) unlink($file); … … 877 878 { 878 879 $currentInfo=$this->ajax_gmaps_admin_kmlFilesGetFile($id, false); 879 if(file_exists( self::KML_DIRECTORY.$currentInfo['file'])) unlink(GPCCore::getPiwigoSystemPath().self::KML_DIRECTORY.$currentInfo['file']);880 if(file_exists(GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$currentInfo['file'])) unlink(GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$currentInfo['file']); 880 881 } 881 882 … … 1008 1009 if($result) 1009 1010 { 1010 if($file!='' and file_exists(GPCCore::getPiwigoSystemPath(). self::KML_DIRECTORY.$file))1011 { 1012 unlink(GPCCore::getPiwigoSystemPath(). self::KML_DIRECTORY.$file);1011 if($file!='' and file_exists(GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$file)) 1012 { 1013 unlink(GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$file); 1013 1014 } 1014 1015 return('ok');
Note: See TracChangeset
for help on using the changeset viewer.