Index: trunk/phase3/includes/specials/SpecialConfirmemail.php |
— | — | @@ -25,6 +25,12 @@ |
26 | 26 | function execute( $code ) { |
27 | 27 | global $wgUser, $wgOut; |
28 | 28 | $this->setHeaders(); |
| 29 | + |
| 30 | + if ( wfReadOnly() ) { |
| 31 | + $wgOut->readOnlyPage(); |
| 32 | + return; |
| 33 | + } |
| 34 | + |
29 | 35 | if( empty( $code ) ) { |
30 | 36 | if( $wgUser->isLoggedIn() ) { |
31 | 37 | if( User::isValidEmailAddr( $wgUser->getEmail() ) ) { |
— | — | @@ -121,6 +127,12 @@ |
122 | 128 | |
123 | 129 | function execute( $code ) { |
124 | 130 | $this->setHeaders(); |
| 131 | + |
| 132 | + if ( wfReadOnly() ) { |
| 133 | + $wgOut->readOnlyPage(); |
| 134 | + return; |
| 135 | + } |
| 136 | + |
125 | 137 | $this->attemptInvalidate( $code ); |
126 | 138 | } |
127 | 139 | |
Index: trunk/phase3/includes/specials/SpecialResetpass.php |
— | — | @@ -19,6 +19,11 @@ |
20 | 20 | function execute( $par ) { |
21 | 21 | global $wgUser, $wgAuth, $wgOut, $wgRequest; |
22 | 22 | |
| 23 | + if ( wfReadOnly() ) { |
| 24 | + $wgOut->readOnlyPage(); |
| 25 | + return; |
| 26 | + } |
| 27 | + |
23 | 28 | $this->mUserName = $wgRequest->getVal( 'wpName' ); |
24 | 29 | $this->mOldpass = $wgRequest->getVal( 'wpPassword' ); |
25 | 30 | $this->mNewpass = $wgRequest->getVal( 'wpNewPassword' ); |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -54,6 +54,11 @@ |
55 | 55 | function execute( $par ) { |
56 | 56 | global $wgOut, $wgRequest, $wgUser; |
57 | 57 | |
| 58 | + if ( wfReadOnly() ) { |
| 59 | + $wgOut->readOnlyPage(); |
| 60 | + return; |
| 61 | + } |
| 62 | + |
58 | 63 | if( !$this->userCanExecute( $wgUser ) ) { |
59 | 64 | $this->displayRestrictionError(); |
60 | 65 | return; |