r66073 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66072‎ | r66073 | r66074 >
Date:17:19, 8 May 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed getWikiValue issue.
Modified paths:
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php (modified) (history)
  • /trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValueDescription.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValue.php
@@ -73,6 +73,8 @@
7474 * Parses the value into the coordinates and any meta data provided, such as distance.
7575 */
7676 protected function parseUserValueOrQuery( $value, $asQuery = false ) {
 77+ $this->mWikivalue = $value;
 78+
7779 $comparator = SMW_CMP_EQ;
7880
7981 if ( $value == '' ) {
Index: trunk/extensions/SemanticMaps/GeoCoords/SM_GeoCoordsValueDescription.php
@@ -62,7 +62,7 @@
6363 if ( $dataValue->getTypeID() != '_geo'
6464 || !$dataValue->isValid()
6565 || !$description instanceof SMGeoCoordsValueDescription
66 - //|| ( $description->getComparator() != SMW_CMP_EQ && $description->getComparator() != SMW_CMP_NEQ )
 66+ || ( $description->getComparator() != SMW_CMP_EQ && $description->getComparator() != SMW_CMP_NEQ )
6767 ) return true;
6868
6969 $coordinates = $dataValue->getCoordinateSet();

Status & tagging log