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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) 
Note: See TracChangeset for help on using the changeset viewer.