Changeset 10915 for extensions/GMaps/gmaps_install.class.inc.php
- Timestamp:
- May 17, 2011, 8:25:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_install.class.inc.php
r10551 r10915 42 42 public function install() 43 43 { 44 if(!file_exists(GPCCore::getPiwigoSystemPath(). "/".PWG_LOCAL_DIR.self::KML_DIRECTORY))44 if(!file_exists(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY)) 45 45 { 46 mkdir(GPCCore::getPiwigoSystemPath(). "/".PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true);46 mkdir(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY, 0755, true); 47 47 } 48 48 … … 123 123 public function uninstall() 124 124 { 125 GPCCore::rmDir(dirname(GPCCore::getPiwigoSystemPath(). "/".PWG_LOCAL_DIR.self::KML_DIRECTORY));125 GPCCore::rmDir(dirname(GPCCore::getPiwigoSystemPath().'/'.PWG_LOCAL_DIR.self::KML_DIRECTORY)); 126 126 $this->deleteConfig(); 127 127 $this->tablef->drop(); … … 176 176 private function updateFrom_010000() 177 177 { 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); 180 180 181 181 $directory=scandir(GMAPS_PATH.'kml/'); … … 185 185 if(preg_match('/.*(?:\.kml|\.kmz)$/i', $file)) 186 186 { 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); 188 188 } 189 189 }
Note: See TracChangeset
for help on using the changeset viewer.