Index: trunk/phase3/includes/specials/SpecialPasswordReset.php |
— | — | @@ -212,12 +212,13 @@ |
213 | 213 | $this->getOutput()->returnToMain(); |
214 | 214 | } |
215 | 215 | |
216 | | - function canChangePassword( User $user ) { |
| 216 | + protected function canChangePassword( User $user ) { |
217 | 217 | global $wgPasswordResetRoutes, $wgAuth; |
218 | 218 | |
219 | 219 | // Maybe password resets are disabled, or there are no allowable routes |
220 | 220 | if ( !is_array( $wgPasswordResetRoutes ) || |
221 | | - !in_array( true, array_values( $wgPasswordResetRoutes ) ) ) { |
| 221 | + !in_array( true, array_values( $wgPasswordResetRoutes ) ) ) |
| 222 | + { |
222 | 223 | return 'passwordreset-disabled'; |
223 | 224 | } |
224 | 225 | |
— | — | @@ -235,7 +236,6 @@ |
236 | 237 | return true; |
237 | 238 | } |
238 | 239 | |
239 | | - |
240 | 240 | /** |
241 | 241 | * Hide the password reset page if resets are disabled. |
242 | 242 | * @return Bool |
— | — | @@ -249,4 +249,4 @@ |
250 | 250 | |
251 | 251 | return false; |
252 | 252 | } |
253 | | -} |
\ No newline at end of file |
| 253 | +} |