dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df3051
)
Fix bug 19261 by saving the username as the signature if it is submitted empty
author
Andrew Garrett
<werdna@users.mediawiki.org>
Fri, 7 Aug 2009 16:06:06 +0000
(16:06 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Fri, 7 Aug 2009 16:06:06 +0000
(16:06 +0000)
includes/Preferences.php
patch
|
blob
|
history
diff --git
a/includes/Preferences.php
b/includes/Preferences.php
index
9553a40
..
e4da11e
100644
(file)
--- 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;
}