http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62014

Revision: 62014
Author:   werdna
Date:     2010-02-05 05:52:27 +0000 (Fri, 05 Feb 2010)

Log Message:
-----------
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: trunk/extensions/LiquidThreads/pages/TalkpageView.php
===================================================================
--- trunk/extensions/LiquidThreads/pages/TalkpageView.php       2010-02-05 
05:40:50 UTC (rev 62013)
+++ trunk/extensions/LiquidThreads/pages/TalkpageView.php       2010-02-05 
05:52:27 UTC (rev 62014)
@@ -369,6 +369,12 @@
        function getPageLimit() {
                $article = $this->article;
                
+               global $wgRequest;
+               $requestedLimit = $wgRequest->getVal( 'limit', null );
+               if ( $requestedLimit ) {
+                       return $requestedLimit;
+               }
+               
                if ( $article->exists() ) {
                        $pout = $article->getParserOutput();
                        $setLimit = $pout->getProperty('lqt-page-limit');



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to