From a4afe217562d69ce91a13d9ece49a4d5b0c15963 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 25 Jul 2011 18:05:54 +0000 Subject: [PATCH] Marked canChangePassword protected, w/s fixes --- includes/specials/SpecialPasswordReset.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index 1976f141a9..d25883a682 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -212,12 +212,13 @@ class SpecialPasswordReset extends FormSpecialPage { $this->getOutput()->returnToMain(); } - function canChangePassword( User $user ) { + protected function canChangePassword( User $user ) { global $wgPasswordResetRoutes, $wgAuth; // Maybe password resets are disabled, or there are no allowable routes if ( !is_array( $wgPasswordResetRoutes ) || - !in_array( true, array_values( $wgPasswordResetRoutes ) ) ) { + !in_array( true, array_values( $wgPasswordResetRoutes ) ) ) + { return 'passwordreset-disabled'; } @@ -235,7 +236,6 @@ class SpecialPasswordReset extends FormSpecialPage { return true; } - /** * Hide the password reset page if resets are disabled. * @return Bool @@ -249,4 +249,4 @@ class SpecialPasswordReset extends FormSpecialPage { return false; } -} \ No newline at end of file +} -- 2.20.1