Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php |
— | — | @@ -206,9 +206,10 @@ |
207 | 207 | } |
208 | 208 | $importDis = smwfGetStore()->getPropertyValues( $diWikiPage, new SMWDIProperty( '_IMPO' ) ); |
209 | 209 | 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(); |
213 | 214 | } else { |
214 | 215 | $localname = ''; |
215 | 216 | if ( $diWikiPage->getNamespace() == SMW_NS_PROPERTY ) { |