From: Andrew Garrett Date: Fri, 7 Aug 2009 16:06:06 +0000 (+0000) Subject: Fix bug 19261 by saving the username as the signature if it is submitted empty X-Git-Tag: 1.31.0-rc.0~40436 X-Git-Url: http://git.cyclocoop.org/%22.%20%20%20generer_url_action%28%22logout%22%2C%22logout=prive%22%29%20.%20%20%20%22?a=commitdiff_plain;h=9831d503715c5415617a915a16e7e17421cd94a2;p=lhc%2Fweb%2Fwiklou.git Fix bug 19261 by saving the username as the signature if it is submitted empty --- diff --git a/includes/Preferences.php b/includes/Preferences.php index 9553a401ae..e4da11e205 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -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; }