Changeset 10915 for extensions/GMaps/gmaps_ajax.php
- Timestamp:
- May 17, 2011, 8:25:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_ajax.php
r10551 r10915 872 872 } 873 873 874 $file=GPCCore::getPiwigoSystemPath(). PWG_LOCAL_DIR.self::KML_DIRECTORY.$file;874 $file=GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY.$file; 875 875 876 876 if(file_exists($file)) unlink($file); … … 878 878 { 879 879 $currentInfo=$this->ajax_gmaps_admin_kmlFilesGetFile($id, false); 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 if(file_exists(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY.$currentInfo['file'])) unlink(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY.$currentInfo['file']); 881 881 } 882 882 … … 1009 1009 if($result) 1010 1010 { 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);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); 1014 1014 } 1015 1015 return('ok');
Note: See TracChangeset
for help on using the changeset viewer.