r65790 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65789‎ | r65790 | r65791 >
Date:06:34, 2 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed issues with coordinate recognision in queries - yay :D
Modified paths:
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
@@ -86,8 +86,8 @@
8787 * @see SMWDataValue::parseDBkeys
8888 */
8989 protected function parseDBkeys( $args ) {
90 - $this->mCoordinateSet['lat'] = $args['lat'];
91 - $this->mCoordinateSet['lon'] = $args['lon'];
 90+ $this->mCoordinateSet['lat'] = $args[0];
 91+ $this->mCoordinateSet['lon'] = $args[1];
9292
9393 $this->m_caption = MapsCoordinateParser::formatCoordinates( $this->mCoordinateSet );
9494 $this->mWikivalue = $this->m_caption;
@@ -100,8 +100,8 @@
101101 $this->unstub();
102102
103103 return array(
104 - 'lat' => $this->mCoordinateSet['lat'],
105 - 'lon' => $this->mCoordinateSet['lon']
 104+ $this->mCoordinateSet['lat'],
 105+ $this->mCoordinateSet['lon']
106106 );
107107 }
108108

Status & tagging log