r108140 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108139‎ | r108140 | r108141 >
Date:13:34, 5 January 2012
Author:maxsem
Status:ok
Tags:
Comment:
Don't output coordinates as strings
Modified paths:
  • /trunk/extensions/GeoData/ApiQueryGeoSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GeoData/ApiQueryGeoSearch.php
@@ -97,8 +97,8 @@
9898 'pageid' => intval( $row->page_id ),
9999 'ns' => intval( $title->getNamespace() ),
100100 'title' => $title->getPrefixedText(),
101 - 'lat' => $row->gt_lat,
102 - 'lon' => $row->gt_lon,
 101+ 'lat' => floatval( $row->gt_lat ),
 102+ 'lon' => floatval( $row->gt_lon ),
103103 'dist' => round( $row->dist, 1 ),
104104 );
105105 $fit = $result->addValue( array( 'query', $this->getModuleName() ), null, $vals );

Status & tagging log