r108382 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108381‎ | r108382 | r108383 >
Date:06:36, 9 January 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r108306; do not pass limit value when 0
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php
@@ -218,8 +218,11 @@
219219 }
220220
221221 $params['offset'] = $this->mQuery->getOffset() + $this->mQuery->getLimit();
222 - $params['limit'] = $this->mQuery->getLimit();
223 -
 222+
 223+ if ( $this->mQuery->getLimit() > 0 ) {
 224+ $params['limit'] = $this->mQuery->getLimit();
 225+ }
 226+
224227 if ( count( $this->mQuery->sortkeys ) > 0 ) {
225228 $order = implode( ',', $this->mQuery->sortkeys );
226229 $sort = implode( ',', array_keys( $this->mQuery->sortkeys ) );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108306fix bug 33575jeroendedauw04:08, 7 January 2012