r66723 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66722‎ | r66723 | r66724 >
Date:15:47, 21 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
changes for 0.6
Modified paths:
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
@@ -177,11 +177,16 @@
178178 * @see SMWDataValue::getDBkeys
179179 */
180180 public function getDBkeys() {
 181+ global $smgUseSpatialExtensions;
 182+
181183 $this->unstub();
182184
183185 if ( $smgUseSpatialExtensions ) {
184 - global $smgUseSpatialExtensions;
185186 // TODO
 187+ return array(
 188+ // GeomFromText()
 189+ str_replace( ',', '.', " POINT({$this->mCoordinateSet['lat']} {$this->mCoordinateSet['lon']}) " )
 190+ );
186191 }
187192 else {
188193 return array(

Status & tagging log