Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -672,7 +672,8 @@ |
673 | 673 | } |
674 | 674 | } |
675 | 675 | |
676 | | - $pager = new ConfirmAccountsPager( $this, array(), $this->showRejects ); |
| 676 | + $pager = new ConfirmAccountsPager( $this, array(), $this->showRejects ); |
| 677 | + |
677 | 678 | if ( $pager->getNumRows() ) { |
678 | 679 | if( $this->showRejects ) |
679 | 680 | $wgOut->addHTML( wfMsgExt('confirmaccount-list2', array('parse') ) ); |
— | — | @@ -744,6 +745,9 @@ |
745 | 746 | $this->mConds['acr_deleted'] = 0; |
746 | 747 | $this->rejects = $rejects; |
747 | 748 | parent::__construct(); |
| 749 | + # Treat 20 as the default limit, since each entry takes up 5 rows. |
| 750 | + $urlLimit = $this->mRequest->getInt( 'limit' ); |
| 751 | + $this->mLimit = $urlLimit ? $urlLimit : 20; |
748 | 752 | } |
749 | 753 | |
750 | 754 | function formatRow( $row ) { |