From: Antoine Musso Date: Sat, 13 Aug 2005 09:03:36 +0000 (+0000) Subject: Fix #2855: Credit for a uniq author showed its realname even with $wgAllowRealName... X-Git-Tag: 1.6.0~2000 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=d8a1fe880164d522fc01af95ac3d3a88d3798d20;p=lhc%2Fweb%2Fwiklou.git Fix #2855: Credit for a uniq author showed its realname even with $wgAllowRealName=false. --- diff --git a/includes/Credits.php b/includes/Credits.php index 8699c79f76..7131789b0c 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -68,15 +68,14 @@ function getCredits($article, $cnt, $showIfMax=true) { * */ function getAuthorCredits($article) { - global $wgLang; + global $wgLang, $wgAllowRealName; $last_author = $article->getUser(); if ($last_author == 0) { $author_credit = wfMsg('anonymous'); } else { - - $real_name = User::whoIsReal($last_author); + if($wgAllowRealName) { $real_name = User::whoIsReal($last_author); } $user_name = User::whoIs($last_author); if (!empty($real_name)) {