Changeset 3214 for trunk/modules

Show
Ignore:
Timestamp:
07/27/2008 10:38:44 AM (4 months ago)
Author:
alexsancho
Message:

Follow up to r3208, now the url separator is an argument of api_url method

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/gmaps/libraries/Gmap.php

    r3208 r3214  
    1919         * @return  string 
    2020         */ 
    21          public static function api_url($component = 'jsapi', $parameters = NULL) 
     21         public static function api_url($component = 'jsapi', $parameters = NULL, $separator = '&') 
    2222         { 
    2323                if (empty($parameters['ie'])) 
     
    3939                } 
    4040 
    41                 return 'http://www.google.com/'.$component.'?'.http_build_query($parameters, '', '&'); 
     41                return 'http://www.google.com/'.$component.'?'.http_build_query($parameters, '', $separator); 
    4242         } 
    4343 
     
    9191                { 
    9292                        // Set the XML URL 
    93                         $xml = Gmap::api_url('maps/geo', array('output' => 'xml', 'q' => $address)); 
     93                        $xml = Gmap::api_url('maps/geo', array('output' => 'xml', 'q' => $address), '&'); 
    9494 
    9595                        // Disable error reporting while fetching the feed 
     
    297297         * @param float $lon longitude 
    298298         * @param string $html HTML for info window 
     299         * @param array $options marker options 
    299300         * @return object 
    300301         */