Last modified: 2013-01-02 11:49:51 UTC
after updating the core (git pull) I found that my wikis ( $wgMaxCredits = 4;) show realnames instead of usernames on bottom of wiki pages. Has anyone an explanation for this effect, or is it a bug or regression ? I checked https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=history;f=includes/actions/CreditsAction.php but could not find something at the first glance. observed on * commit 7c6762ee2cf027f02ecc13bcecc89caa7b63e64e Date: Sat Dec 8 15:08:46 2012 +0000
bisect: this version was okay * version 7d6d54d shows usernames (= okay) * commit 7d6d54df8a068a982c3c8f2ae1d188f3383ca9c5 * Author: Reedy <reedy@wikimedia.org> * Date: Tue Jul 17 15:39:45 2012 +0000
last version which shows usernames in the "credits" is (for me) * commit 01e1b1a8e806ebd65b1ee157b0e555fe1a0641ef * Author: daniel <daniel.kinzler@wikimedia.de> * Date: Fri Oct 5 16:50:32 2012 +0200 next versions fail: i) either mediawiki not working * PHP Fatal error: Call to undefined method CreditsAction::getCredits() in /work/epw/srv/www/htdocs/epowiki/includes/SkinTemplate.php on line 339 ii) or realnames instead of usernames
SOLVED. When you use the deprecated $wgAllowRealName = false; this does not work any more since 1.21.0, wherein it is removed, and Credits are shown for Realnames. You must use $wgHiddenPrefs[] = 'realname'; References: * https://www.mediawiki.org/wiki/Manual:$wgHiddenPrefs * https://www.mediawiki.org/wiki/Manual:$wgAllowRealName
When upgrading a wiki which still uses $wgAllowRealName = false (which is deprecated but was working since recently) it can lead to an unwanted disclosure of real names (for example used by Auth modules) in the "credits" section of pages. A corresponding information should be added to the RELEASE NOTES or upgrade information. Alternatively, an "emergency exit" could stop execution instead of revealing real names on wikis where this is not wanted or allowed.
You have been warned.
(In reply to comment #4) > A corresponding information should be added to the > RELEASE NOTES or upgrade > information. Already there: === Configuration changes in 1.21 === ... * Deprecated $wgAllowRealName is removed. Use $wgHiddenPrefs[] = 'realname' instead.