r26481 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26480‎ | r26481 | r26482 >
Date:16:23, 7 October 2007
Author:aaron
Status:old
Tags:
Comment:
*Limit to 20 by default
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -672,7 +672,8 @@
673673 }
674674 }
675675
676 - $pager = new ConfirmAccountsPager( $this, array(), $this->showRejects );
 676+ $pager = new ConfirmAccountsPager( $this, array(), $this->showRejects );
 677+
677678 if ( $pager->getNumRows() ) {
678679 if( $this->showRejects )
679680 $wgOut->addHTML( wfMsgExt('confirmaccount-list2', array('parse') ) );
@@ -744,6 +745,9 @@
745746 $this->mConds['acr_deleted'] = 0;
746747 $this->rejects = $rejects;
747748 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;
748752 }
749753
750754 function formatRow( $row ) {

Status & tagging log