r111312 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111311‎ | r111312 | r111313 >
Date:18:47, 12 February 2012
Author:mkroetzsch
Status:deferred
Tags:
Comment:
fixed a glitch introduced yesterday that caused errors when exporting RDF for redirects
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php
@@ -179,14 +179,7 @@
180180 // have helper property ready before entering the for loop, even if not needed:
181181 $peHelper = self::getResourceElementForProperty( $property, true );
182182
183 - if ( $property->getKey() == '_REDI' || $property->getKey() == '_URI' ) {
184 - $filterNamespace = true;
185 - if ( $property->getKey() == '_REDI' ) {
186 - $pe = array( $pe, self::getSpecialPropertyResource( '_URI' ) );
187 - }
188 - } else {
189 - $filterNamespace = false;
190 - }
 183+ $filterNamespace = ( $property->getKey() == '_REDI' || $property->getKey() == '_URI' );
191184
192185 foreach ( $dataItems as $dataItem ) {
193186 // Basic namespace filtering to ensure that types match for redirects etc.