Fix bug 19261 by saving the username as the signature if it is submitted empty
authorAndrew Garrett <werdna@users.mediawiki.org>
Fri, 7 Aug 2009 16:06:06 +0000 (16:06 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Fri, 7 Aug 2009 16:06:06 +0000 (16:06 +0000)
includes/Preferences.php

index 9553a40..e4da11e 100644 (file)
@@ -1121,6 +1121,9 @@ 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;
        }