Changeset 10915


Ignore:
Timestamp:
May 17, 2011, 8:25:00 PM (9 years ago)
Author:
grum
Message:

fix bug:2304

Location:
extensions/GMaps
Files:
4 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');
  • extensions/GMaps/gmaps_install.class.inc.php

    r10551 r10915  
    4242    public function install()
    4343    {
    44       if(!file_exists(GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY))
     44      if(!file_exists(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY))
    4545      {
    46         mkdir(GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true);
     46        mkdir(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true);
    4747      }
    4848
     
    123123    public function uninstall()
    124124    {
    125       GPCCore::rmDir(dirname(GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY));
     125      GPCCore::rmDir(dirname(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY));
    126126      $this->deleteConfig();
    127127      $this->tablef->drop();
     
    176176    private function updateFrom_010000()
    177177    {
    178       if(!file_exists(GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY))
    179           mkdir(GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true);
     178      if(!file_exists(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY))
     179          mkdir(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true);
    180180
    181181      $directory=scandir(GMAPS_PATH.'kml/');
     
    185185        if(preg_match('/.*(?:\.kml|\.kmz)$/i', $file))
    186186        {
    187           rename(GMAPS_PATH.'kml/'.$file, GPCCore::getPiwigoSystemPath()."/".PWG_LOCAL_DIR.self::KML_DIRECTORY.$file);
     187          rename(GMAPS_PATH.'kml/'.$file, GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY.$file);
    188188        }
    189189      }
  • extensions/GMaps/gmaps_version.inc.php

    r10885 r10915  
    1515  if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1616
    17   define('GMAPS_VERSION',  '1.3.0');
    18   define('GMAPS_VERSION2', '01.03.00');
     17  define('GMAPS_VERSION',  '1.3.1');
     18  define('GMAPS_VERSION2', '01.03.01');
    1919  define('GMAPS_GPC_NEEDED', '3.5.1');
    2020  define('GMAPS_AMD_NEEDED', '0.6.0'); //advanced metadata plugin is needed
  • extensions/GMaps/main.inc.php

    r10551 r10915  
    9898|         |            |     object
    9999|         |            |
     100| 1.3.1   | 2011-05-17 | * mantis bug:2304
     101|         |            |   . Impossible to upload kml file
    100102|         |            |
    101103|         |            |
Note: See TracChangeset for help on using the changeset viewer.