Oartial revert of r50809. Call the old method names for b/c.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 9 Jun 2009 23:59:42 +0000 (23:59 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 9 Jun 2009 23:59:42 +0000 (23:59 +0000)
includes/Preferences.php

index d0135ce..0bc0796 100644 (file)
@@ -152,7 +152,7 @@ class Preferences {
                global $wgAuth;
                $defaultPreferences['realname'] =
                                array(
-                                       'type' => $wgAuth->allowPropChange( 'realname' ) ? 'text' : 'info',
+                                       'type' => $wgAuth->allowRealNameChange() ? 'text' : 'info',
                                        'default' => $user->getRealName(),
                                        'section' => 'personal/info',
                                        'label-message' => 'yourrealname',
@@ -260,7 +260,7 @@ class Preferences {
                global $wgMaxSigChars;
                $defaultPreferences['nickname'] =
                                array(
-                                       'type' => $wgAuth->allowPropChange( 'nickname' ) ? 'text' : 'info',
+                                       'type' => $wgAuth->allowNickChange() ? 'text' : 'info',
                                        'maxlength' => $wgMaxSigChars,
                                        'label-message' => 'yournick',
                                        'validation-callback' =>
@@ -281,7 +281,7 @@ class Preferences {
                
                $defaultPreferences['emailaddress'] =
                                array(
-                                       'type' => $wgAuth->allowPropChange( 'emailaddress' ) ? 'text' : 'info',
+                                       'type' => $wgAuth->allowEmailChange() ? 'text' : 'info',
                                        'default' => $user->getEmail(),
                                        'section' => 'personal/email',
                                        'label-message' => 'youremail',