r86439 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86438‎ | r86439 | r86440 >
Date:22:19, 19 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
rem some dead code and fixed var name
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Concept.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exp_Data.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/export/SMW_Exp_Data.php
@@ -244,7 +244,7 @@
245245
246246 $result[] = array( $subject, $edge, $childSubject );
247247 if ( $childElement instanceof SMWExpData ) { // recursively add child's triples
248 - $result = array_merge( $result, $child->getTripleList( $childSubject ) );
 248+ $result = array_merge( $result, $childElement->getTripleList( $childSubject ) );
249249 }
250250 }
251251 }
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Concept.php
@@ -101,9 +101,6 @@
102102 $desc = $qp->getQueryDescription( str_replace( array( '&lt;', '&gt;', '&amp;' ), array( '<', '>', '&' ), $this->m_dataitem->getConceptQuery() ) );
103103 $exact = true;
104104 $owldesc = $this->descriptionToExpData( $desc, $exact );
105 - if ( $owldesc === false ) {
106 - $element = new SMWExpData( SMWExporter::getSpecialNsResource( 'owl', 'Thing' ) );
107 - }
108105 if ( !$exact ) {
109106 $result = new SMWExpData( new SMWExpResource( '' ) );
110107 $result->addPropertyObjectValue( SMWExporter::getSpecialNsResource( 'rdf', 'type' ),

Status & tagging log