r23102 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23101‎ | r23102 | r23103 >
Date:17:47, 19 June 2007
Author:mkroetzsch
Status:old
Tags:
Comment:
Use new data value API
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php
@@ -161,7 +161,7 @@
162162 $object = current($this->content);
163163 next($this->content);
164164 if ($object instanceof SMWDataValue) { //print data values
165 - return htmlspecialchars($object->getStringValue()); ///TODO: escaping will be done in SMWDataValue
 165+ return $object->getShortHTMLText($linker);
166166 } elseif ($object instanceof Title) { // print Title objects
167167 if ($linker === NULL) {
168168 return htmlspecialchars($object->getPrefixedText());
@@ -189,7 +189,7 @@
190190 $object = current($this->content);
191191 next($this->content);
192192 if ($object instanceof SMWDataValue) { //print data values
193 - return $object->getStringValue();
 193+ return $object->getShortWikiText($linker);
194194 } elseif ($object instanceof Title) { // print Title objects
195195 if ( ($linked === NULL) || ($linked === false) ) {
196196 return $object->getPrefixedText();

Status & tagging log