Ignore:
Timestamp:
05/17/11 20:25:00 (9 years ago)
Author:
grum
Message:

fix bug:2304

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_ajax.php

    r10551 r10915  
    872872        } 
    873873 
    874         $file=GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$file; 
     874        $file=GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY.$file; 
    875875 
    876876        if(file_exists($file)) unlink($file); 
     
    878878        { 
    879879          $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']); 
    881881        } 
    882882 
     
    10091009      if($result) 
    10101010      { 
    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); 
    10141014        } 
    10151015        return('ok'); 
Note: See TracChangeset for help on using the changeset viewer.