Index: trunk/phase3/includes/SpecialUserlogin.php |
— | — | @@ -716,9 +716,15 @@ |
717 | 717 | global $wgAuth, $wgEmailConfirmToEdit; |
718 | 718 | |
719 | 719 | $titleObj = SpecialPage::getTitleFor( 'Userlogin' ); |
720 | | - |
| 720 | + |
721 | 721 | if ( $this->mType == 'signup' ) { |
722 | | - if ( $wgUser->isBlockedFromCreateAccount() ) { |
| 722 | + // Block signup here if in readonly. Keeps user from |
| 723 | + // going through the process (filling out data, etc) |
| 724 | + // and being informed later. |
| 725 | + if ( wfReadOnly() ) { |
| 726 | + $wgOut->readOnlyPage(); |
| 727 | + return; |
| 728 | + } elseif ( $wgUser->isBlockedFromCreateAccount() ) { |
723 | 729 | $this->userBlockedMessage(); |
724 | 730 | return; |
725 | 731 | } elseif ( count( $permErrors = $titleObj->getUserPermissionsErrors( 'createaccount', $wgUser, true ) )>0 ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -333,8 +333,8 @@ |
334 | 334 | * (bug 14367) Failed block no longer adds phantom watchlist entry |
335 | 335 | * (bug 14385) "Move subpages" option no longer tries to move to invalid titles |
336 | 336 | * (bug 14386) Fix subpage namespace oddity when moving a talk page |
| 337 | +* (bug 11771) Signup form now not shown if in read-only mode. |
337 | 338 | |
338 | | - |
339 | 339 | === API changes in 1.13 === |
340 | 340 | |
341 | 341 | * Fixing main page display in meta=siteinfo |