r108306 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108305‎ | r108306 | r108307 >
Date:04:08, 7 January 2012
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/RELEASE-NOTES
@@ -11,6 +11,7 @@
1212 * Fixed bug in "further results" links causing the main column to be displayed twice on Special:Ask (bug 33473).
1313 * Fixed incorrect case-sensitivity of the format parameter (bug 31138).
1414 * Fixed internationalization of magic words.
 15+* Fixed offset and limit value in further results links (bug 33575).
1516
1617 == SMW 1.7 ==
1718
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php
@@ -216,6 +216,9 @@
217217 if ( $this->mQuery->getMainLabel() !== false ) {
218218 $params['mainlabel'] = $this->mQuery->getMainLabel();
219219 }
 220+
 221+ $params['offset'] = $this->mQuery->getOffset() + $this->mQuery->getLimit();
 222+ $params['limit'] = $this->mQuery->getLimit();
220223
221224 if ( count( $this->mQuery->sortkeys ) > 0 ) {
222225 $order = implode( ',', $this->mQuery->sortkeys );

Follow-up revisions

RevisionCommit summaryAuthorDate
r108382Follow up to r108306; do not pass limit value when 0jeroendedauw06:36, 9 January 2012