r62014 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62013‎ | r62014 | r62015 >
Date:05:52, 5 February 2010
Author:werdna
Status:ok
Tags:
Comment:
Allow specification of the page thread limit on the query-string. Can't fit it into the UI yet, so I'll just leave it like that.
Modified paths:
  • /trunk/extensions/LiquidThreads/pages/TalkpageView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/pages/TalkpageView.php
@@ -369,6 +369,12 @@
370370 function getPageLimit() {
371371 $article = $this->article;
372372
 373+ global $wgRequest;
 374+ $requestedLimit = $wgRequest->getVal( 'limit', null );
 375+ if ( $requestedLimit ) {
 376+ return $requestedLimit;
 377+ }
 378+
373379 if ( $article->exists() ) {
374380 $pout = $article->getParserOutput();
375381 $setLimit = $pout->getProperty('lqt-page-limit');

Status & tagging log