Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php |
— | — | @@ -576,17 +576,16 @@ |
577 | 577 | }
|
578 | 578 |
|
579 | 579 | function showList() {
|
580 | | - global $wgOut, $wgUser, $wgTitle, $wgLang;
|
| 580 | + global $wgOut, $wgUser, $wgTitle, $wgLang, $wgSaveRejectedAccountReqs;
|
581 | 581 |
|
582 | 582 | if( $this->showRejects ) {
|
583 | 583 | $listLink = $this->skin->makeKnownLinkObj( $wgTitle, wfMsgHtml( 'confirmaccount-back' ) );
|
584 | | - } else {
|
| 584 | + } else if( $wgSaveRejectedAccountReqs ) {
|
585 | 585 | $listLink = $this->skin->makeKnownLinkObj( $wgTitle, wfMsgHtml( 'confirmaccount-back2' ),
|
586 | 586 | wfArrayToCGI( array('wpShowRejects' => 1 ) ) );
|
587 | 587 | }
|
588 | 588 | $wgOut->setSubtitle( '<p>'.$listLink.'</p>' );
|
589 | | -
|
590 | | - global $wgSaveRejectedAccountReqs;
|
| 589 | +
|
591 | 590 | if( $wgSaveRejectedAccountReqs ) {
|
592 | 591 | # Every 100th view, prune old deleted items
|
593 | 592 | wfSeedRandom();
|