User "Dantman" posted a comment on MediaWiki.r102624.

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/102624#c25845
Commit summary:

Add a new User::getDisplayName() to return the name that should be displayed in 
the interface.
Add a UserDisplayName hook to allow extensions to give custom display names for 
users.
Add a $wgRealNameInInterface to use the real name of a user as the display name.
To start of the first use of the display name functionality tweak SkinTemplate 
to declare the userdisplayname and use it inside of personal_urls.

Comment:

$tpl->data['userdisplayname'] may be null for IPs. $this->userdisplayname comes 
directly from $user->getDisplayName() it will be the ip address for anons. Of 
course anons don't have real names so usually there won't be any difference 
from $this->username, but I included it in the change in case someone decides 
they have a good idea for an extension that changes the display name of an anon 
user.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to