Display the file sha1 value in the file info page
[lhc/web/wiklou.git] / includes / actions / CreditsAction.php
index 7025477..ed58686 100644 (file)
@@ -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();
                }