r67399 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67398‎ | r67399 | r67400 >
Date:12:45, 5 June 2010
Author:fabianh
Status:deferred
Tags:
Comment:
Replaced getXSDValue() calls
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Exhibit/SRF_Exhibit.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Exhibit/SRF_Exhibit.php
@@ -393,7 +393,8 @@
394394 $textstack[] = $object->getLongText($outputmode,$this->getLinker(0));
395395 break;
396396 case '_geo':
397 - $textstack[] = $object->getXSDValue($outputmode,$this->getLinker(0));
 397+ $c = $object->getDBKeys();
 398+ $textstack[] = $c[0].",".$c[1];
398399 break;
399400 case '_num':
400401 if ( method_exists( $object, 'getValueKey' ) ) {
@@ -410,7 +411,7 @@
411412 $textstack[] = $object->getShortWikiText($this->getLinker(0));
412413 break;
413414 case '_tel': case '_anu': case '_uri':
414 - $textstack[] = $object->getXSDValue($this->getLinker(0));
 415+ $textstack[] = $object->getWikiValue();
415416 break;
416417 case '__sin':
417418 $tmp = $object->getShortText($outputmode,null);

Status & tagging log