r51141 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51140‎ | r51141 | r51142 >
Date:21:55, 28 May 2009
Author:sergeychernyshev
Status:deferred
Tags:
Comment:
Applied fix for RDF export problems with imported vocabularies (Bug #18986) - submitted by Li Ding (http://article.gmane.org/gmane.comp.web.wiki.semediawiki.devel/1493)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_SemanticData.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValue.php
@@ -532,7 +532,7 @@
533533 * @deprecated Use parseDBkeys(). This function will vanish before SMW 1.6.
534534 */
535535 protected function parseXSDValue($value, $unit) {
536 - $this->parserDBkeys(array($value, $unit));
 536+ $this->parseDBkeys(array($value, $unit));
537537 }
538538
539539 /**
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_SemanticData.php
@@ -85,6 +85,9 @@
8686 foreach ( $this->stubpropvals[$property->getDBkey()] as $dbkeys ) {
8787 $dv = SMWDataValueFactory::newPropertyObjectValue($property);
8888 $dv->setDBkeys($dbkeys);
 89+
 90+ $dv->isValid();
 91+
8992 if ($this->m_noduplicates) {
9093 $this->propvals[$property->getDBkey()][$dv->getHash()] = $dv;
9194 } else {

Status & tagging log