r45739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45738‎ | r45739 | r45740 >
Date:18:21, 14 January 2009
Author:mkroetzsch
Status:deferred
Tags:
Comment:
adjust results-per-page limit based on max for inline queries, not based on overall max!
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -271,7 +271,7 @@
272272 * Build the navigation for some given query result, reuse url-tail parameters
273273 */
274274 protected function getNavigationBar($res, $urltail) {
275 - global $wgUser, $smwgQMaxLimit;
 275+ global $wgUser, $smwgQMaxInlineLimit;
276276 $skin = $wgUser->getSkin();
277277 $offset = $this->m_params['offset'];
278278 $limit = $this->m_params['limit'];
@@ -290,7 +290,7 @@
291291
292292 $first=true;
293293 foreach (array(20,50,100,250,500) as $l) {
294 - if ($l > $smwgQMaxLimit) break;
 294+ if ($l > $smwgQMaxInlineLimit) break;
295295 if ($first) {
296296 $navigation .= '        (';
297297 $first = false;

Status & tagging log