Do a silent cleanup of the signature on change
authorRob Church <robchurch@users.mediawiki.org>
Sat, 7 Jan 2006 23:13:16 +0000 (23:13 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 7 Jan 2006 23:13:16 +0000 (23:13 +0000)
includes/SpecialPreferences.php

index cd01dda..c55d103 100644 (file)
@@ -227,10 +227,8 @@ class PreferencesForm {
                        $needRedirect = false;
                }
 
-               if( $this->badNickname() ) {
-                       $this->mainPrefsForm( 'error', wfMsg( 'badsig2' ) );
-                       return;
-               }
+               # Clean up the signature a little
+               $this->mNick = Parser::cleanSig( $this->mNick );
 
                $wgUser->setOption( 'language', $this->mUserLanguage );
                $wgUser->setOption( 'variant', $this->mUserVariant );