From 9831d503715c5415617a915a16e7e17421cd94a2 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Fri, 7 Aug 2009 16:06:06 +0000 Subject: [PATCH] Fix bug 19261 by saving the username as the signature if it is submitted empty --- includes/Preferences.php | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.20.1