r86667 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86666‎ | r86667 | r86668 >
Date:20:40, 21 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
implemented getdbkeys bc stuff for geocoords
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_Compatibility_Helpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Compatibility_Helpers.php
@@ -141,6 +141,14 @@
142142 case '__pro':
143143 if ( $dataItem->getDIType() !== SMWDataItem::TYPE_PROPERTY ) break;
144144 return array( $dataItem->getKey() );
 145+ case '_geo':
 146+ $coordinateSet = $dataItem->getCoordinateSet();
 147+
 148+ return array(
 149+ $coordinateSet['lat'],
 150+ $coordinateSet['lon']
 151+ );
 152+ break;
145153 default:
146154 $typeid = $dataItem->getTypeId();
147155 if ( ( $typeid != '' ) && ( $typeid{0} != '_' ) &&

Status & tagging log