Marked canChangePassword protected, w/s fixes
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 25 Jul 2011 18:05:54 +0000 (18:05 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 25 Jul 2011 18:05:54 +0000 (18:05 +0000)
includes/specials/SpecialPasswordReset.php

index 1976f14..d25883a 100644 (file)
@@ -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
+}