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:
756f1f6
)
Fix CreditsAction when user has no real name set but real names enabled
author
Brian Wolff
<bawolff+wn@gmail.com>
Thu, 28 Sep 2017 02:36:31 +0000
(
02:36
+0000)
committer
Brian Wolff
<bawolff+wn@gmail.com>
Thu, 28 Sep 2017 02:36:31 +0000
(
02:36
+0000)
Change-Id: Ief347739a1231fa8bd814694bdb5b4f44ba41a77
includes/actions/CreditsAction.php
patch
|
blob
|
history
diff --git
a/includes/actions/CreditsAction.php
b/includes/actions/CreditsAction.php
index
7025477
..
ed58686
100644
(file)
--- a/
includes/actions/CreditsAction.php
+++ b/
includes/actions/CreditsAction.php
@@
-198,6
+198,9
@@
class CreditsAction extends FormlessAction {
protected function link( User $user ) {
if ( $this->canShowRealUserName() && !$user->isAnon() ) {
$real = $user->getRealName();
+ if ( $real === '' ) {
+ $real = $user->getName();
+ }
} else {
$real = $user->getName();
}