Reimplement r55685, r55686, r55687, with correct parsing of the associative array...
[lhc/web/wiklou.git] / includes / specials / SpecialAllmessages.php
index f762532..417e367 100644 (file)
@@ -128,6 +128,7 @@ class AllmessagesTablePager extends TablePager {
 
        var $messages  = null;
        var $talkPages = null;
+       public $mLimitsShown;
 
        function __construct( $page, $conds, $langObj = null ) {
                parent::__construct();
@@ -135,6 +136,10 @@ class AllmessagesTablePager extends TablePager {
                $this->mPage = $page;
                $this->mConds = $conds;
                $this->mDefaultDirection = true; // always sort ascending
+               // We want to have an option for people to view *all* the messages, 
+               // so they can use Ctrl+F to search them.  5000 is the maximum that 
+               // will get through WebRequest::getLimitOffset().
+               $this->mLimitsShown = array( 20, 50, 100, 250, 500, 5000 => wfMsg('limitall') );
 
                global $wgLang, $wgContLang, $wgRequest;