Changeset 7453 for extensions/GMaps/gmaps_ajax.php
- Timestamp:
- Oct 28, 2010, 12:45:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_ajax.php
r7308 r7453 1084 1084 ); 1085 1085 */ 1086 1086 1087 $result=pwg_query($sql); 1087 1088 if($result) … … 1274 1275 $coords['lng']+=$point['longitude']; 1275 1276 1276 $coords['imgTn'][]= substr($point['imageTnFile'],12);1277 $coords['imgTn'][]=$point['imageTnFile']; 1277 1278 $coords['imgCatsNames'][]=$tmpCatsNames; 1278 1279 $coords['imgName'][]=GPCCore::getUserLanguageDesc($point['imageName']); … … 1335 1336 } 1336 1337 1338 /** 1339 * replace the root directroy for image 1340 * => './galleries/' becomes "G" 1341 * => './upload/' becomes "U" 1342 * => other case : no chnages 1343 * 1344 * @param String $value : path 1345 * @returned String : 1346 */ 1347 private function replaceImgRoot($value) 1348 { 1349 if(preg_match('/^\.\/galleries\//i', $value)>0) 1350 { 1351 return("G".substr($value,12)); 1352 } 1353 elseif("U".preg_match('/^\.\/upload\//i', $value)>0) 1354 { 1355 return(substr($value,9)); 1356 } 1357 return($value); 1358 } 1359 1337 1360 } //class 1338 1361
Note: See TracChangeset
for help on using the changeset viewer.