User "Duplicatebug" posted a comment on MediaWiki.r82029.

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

* (bug 17160) Gender specific display text for User namespace
Second attempt for this thing..

Comment:

User::isValidUserName( $username ) is only check for the valid of a username 
(non-ip or so), not for existing. For a non-existing user the method 
GenderCache::doQuery is called. That method does a db select, but the username 
is not found in the table "user" and so the result is empty/does not contain 
the non-existing user and therefore is not added to the cache. That is the 
reason for the undefined (see the comment "Undefined if there is a valid 
username which for some reason doesn't exist in the database.")

I have open bug 30972




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

Reply via email to