Ignore:
Timestamp:
Apr 21, 2011, 11:16:43 PM (13 years ago)
Author:
grum
Message:

bug:2148 - compatibility with piwigo 2.2
bug:2062 - compatibility with IE7

File:
1 edited

Legend:

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

    r7676 r10551  
    1818  class GMaps_root extends CommonPlugin
    1919  {
    20     const KML_DIRECTORY='/local/plugins/GMaps/kml/';
     20    const KML_DIRECTORY='plugins/GMaps/kml/';
    2121    const ID_MODE_CATEGORY = 'C';
    2222    const ID_MODE_MAP='M';
     
    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']=dirname($_SERVER['SCRIPT_URI']).self::KML_DIRECTORY.rawurlencode($row['kmlFileUrlId']);
     276          if($row['kmlFileId']>0 and $row['kmlFileUrlId']!='') $row['kmlFileUrl']=$_SERVER['SCRIPT_URI'].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.