Revert r54585 "Fix bug 19261 by saving the username as the signature if it is submitt...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 19 Aug 2009 02:33:04 +0000 (02:33 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 19 Aug 2009 02:33:04 +0000 (02:33 +0000)
Looks like the base problem is that empty is being interpreted as "put empty in the sig" instead of as "use default sig" at signature replacement time.
We shouldn't be saving the username into preferences if it hasn't been explicitly typed; if the user changes their name, they should automatically pick up the new value.

includes/Preferences.php

index e4da11e..9553a40 100644 (file)
@@ -1121,9 +1121,6 @@ class Preferences {
                        // When no fancy sig used, make sure ~{3,5} get removed.
                        $signature = $wgParser->cleanSigInSig( $signature );
                }
-               
-               global $wgUser;
-               if (!$signature) $signature = $wgUser->getName();
 
                return $signature;
        }