Changeset 12212


Ignore:
Timestamp:
09/24/11 11:31:32 (8 years ago)
Author:
grum
Message:

fix bugs
bug:2347 - kml display is not working if selecting a kml file in Gmaps plugin manager

Location:
extensions/GMaps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_pip.class.inc.php

    r12204 r12212  
    156156            while($row=pwg_db_fetch_assoc($result)) 
    157157            { 
    158               $mapParam['kmlUrl']=$_SERVER['SCRIPT_URI'].PWG_LOCAL_DIR.self::KML_DIRECTORY.$row['file']; 
     158              $mapParam['kmlUrl']=get_absolute_root_url().PWG_LOCAL_DIR.self::KML_DIRECTORY.$row['file']; 
    159159            } 
    160160          } 
  • extensions/GMaps/gmaps_root.class.inc.php

    r10551 r12212  
    274274        { 
    275275          // if an kml file id is given, apply the url of the file (needs to give the complete URI for google) 
    276           if($row['kmlFileId']>0 and $row['kmlFileUrlId']!='') $row['kmlFileUrl']=$_SERVER['SCRIPT_URI'].PWG_LOCAL_DIR.self::KML_DIRECTORY.rawurlencode($row['kmlFileUrlId']); 
     276          if($row['kmlFileId']>0 and $row['kmlFileUrlId']!='') $row['kmlFileUrl']=get_absolute_root_url().PWG_LOCAL_DIR.self::KML_DIRECTORY.rawurlencode($row['kmlFileUrlId']); 
    277277 
    278278          if($row['displayType']!='MP' and $mode==self::ID_MODE_CATEGORY) 
  • extensions/GMaps/main.inc.php

    r12211 r12212  
    112112|         |            |     the same name 
    113113|         |            | 
     114|         |            | * mantis bug:2347 
     115|         |            |   . kml display is not working if selecting a kml file 
     116|         |            |     in Gmaps plugin manager 
     117|         |            | 
    114118|         |            | 
    115119|         |            | 
Note: See TracChangeset for help on using the changeset viewer.