Changeset 3214 for trunk/modules
- Timestamp:
- 07/27/2008 10:38:44 AM (4 months ago)
- Files:
-
- 1 modified
-
trunk/modules/gmaps/libraries/Gmap.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/gmaps/libraries/Gmap.php
r3208 r3214 19 19 * @return string 20 20 */ 21 public static function api_url($component = 'jsapi', $parameters = NULL )21 public static function api_url($component = 'jsapi', $parameters = NULL, $separator = '&') 22 22 { 23 23 if (empty($parameters['ie'])) … … 39 39 } 40 40 41 return 'http://www.google.com/'.$component.'?'.http_build_query($parameters, '', '&');41 return 'http://www.google.com/'.$component.'?'.http_build_query($parameters, '', $separator); 42 42 } 43 43 … … 91 91 { 92 92 // 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), '&'); 94 94 95 95 // Disable error reporting while fetching the feed … … 297 297 * @param float $lon longitude 298 298 * @param string $html HTML for info window 299 * @param array $options marker options 299 300 * @return object 300 301 */
