r86609 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86608‎ | r86609 | r86610 >
Date:09:03, 21 April 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed use of imported vocabulary URIs
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php
@@ -206,9 +206,10 @@
207207 }
208208 $importDis = smwfGetStore()->getPropertyValues( $diWikiPage, new SMWDIProperty( '_IMPO' ) );
209209 if ( count( $importDis ) > 0 ) {
210 - $namespace = current( $importDis )->getNS();
211 - $namespaceid = current( $importDis )->getNSID();
212 - $localname = current( $importDis )->getLocalName();
 210+ $importValue = SMWDataValueFactory::newDataItemValue( current( $importDis ) );
 211+ $namespace = $importValue->getNS();
 212+ $namespaceid = $importValue->getNSID();
 213+ $localname = $importValue->getLocalName();
213214 } else {
214215 $localname = '';
215216 if ( $diWikiPage->getNamespace() == SMW_NS_PROPERTY ) {

Status & tagging log