Ignore:
Timestamp:
Apr 21, 2011, 11:16:43 PM (13 years ago)
Author:
grum
Message:

bug:2148 - compatibility with piwigo 2.2
bug:2062 - compatibility with IE7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_ajax.php

    r7616 r10551  
    1919 */
    2020
     21  // in this case, PHPWG_ROOT_PATH must be declared as an absolute path...
    2122  define('PHPWG_ROOT_PATH',dirname(dirname(dirname(__FILE__))).'/');
    2223
     
    871872        }
    872873
    873         $file=GPCCore::getPiwigoSystemPath().self::KML_DIRECTORY.$file;
     874        $file=GPCCore::getPiwigoSystemPath().PWG_LOCAL_DIR.self::KML_DIRECTORY.$file;
    874875
    875876        if(file_exists($file)) unlink($file);
     
    877878        {
    878879          $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']);
    880881        }
    881882
     
    10081009      if($result)
    10091010      {
    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);
    10131014        }
    10141015        return('ok');
Note: See TracChangeset for help on using the changeset viewer.