r87831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87830‎ | r87831 | r87832 >
Date:17:54, 10 May 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
make sure that we do not assume that there are no further results if some URIs in a SPARQL result could not be interpreted (count the URIs not the extracted wiki pages)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php
@@ -430,7 +430,7 @@
431431 }
432432 }
433433
434 - if ( count( $resultDataItems ) > $query->getLimit() ) {
 434+ if ( $sparqlResultWrapper->numRows() > $query->getLimit() ) {
435435 array_pop( $resultDataItems );
436436 $hasFurtherResults = true;
437437 } else {

Status & tagging log