r86665 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86664‎ | r86665 | r86666 >
Date:20:32, 21 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
should be floats
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Compatibility_Helpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Compatibility_Helpers.php
@@ -68,7 +68,7 @@
6969 }
7070 break;
7171 case SMWDataItem::TYPE_GEO:
72 - return new SMWDIGeoCoord( array( 'lat' => $dbkeys[0], 'lon' => $dbkeys[1] ), $typeid );
 72+ return new SMWDIGeoCoord( array( 'lat' => (float)$dbkeys[0], 'lon' => (float)$dbkeys[1] ), $typeid );
7373 break;
7474 case SMWDataItem::TYPE_CONTAINER:
7575 break;

Status & tagging log