From d8a1fe880164d522fc01af95ac3d3a88d3798d20 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 13 Aug 2005 09:03:36 +0000 Subject: [PATCH] Fix #2855: Credit for a uniq author showed its realname even with $wgAllowRealName=false. --- includes/Credits.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)) { -- 2.20.1