From 40503e6af2f491a774f4671ad27dbf3a90427625 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 28 Jun 2004 20:32:51 +0000 Subject: [PATCH] Fixed a couple of credits bugs. The string for linking to the full credits page wasn't listed in Language.php; now it is. Also, there was an array-iteration bug in Credits that is now fixed. --- includes/Credits.php | 8 ++++---- languages/Language.php | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/Credits.php b/includes/Credits.php index 66d54a1bb9..23e74a13b3 100644 --- a/includes/Credits.php +++ b/includes/Credits.php @@ -117,9 +117,9 @@ function getContributorCredits($article, $cnt, $showIfMax) { foreach ($contributors as $user_parts) { if ($user_parts[0] != 0) { if ($wgAllowRealName && !empty($user_parts[2])) { - $real_names[$user_id] = creditLink($user_parts[1], $user_parts[2]); + $real_names[] = creditLink($user_parts[1], $user_parts[2]); } else { - $user_names[$user_id] = creditLink($user_parts[1]); + $user_names[] = creditLink($user_parts[1]); } } else { $anon = wfMsg('anonymous'); @@ -128,8 +128,8 @@ function getContributorCredits($article, $cnt, $showIfMax) { # Two strings: real names, and user names - $real = $wgLang->listToText(array_values($real_names)); - $user = $wgLang->listToText(array_values($user_names)); + $real = $wgLang->listToText($real_names); + $user = $wgLang->listToText($user_names); # "ThisSite user(s) A, B and C" diff --git a/languages/Language.php b/languages/Language.php index 98d89aa742..e01a161a77 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -1291,6 +1291,7 @@ amusement.', 'lastmodifiedby' => "This page was last modified $1 by $2.", 'and' => 'and', 'othercontribs' => "Based on work by $1.", +'others' => 'others', 'siteusers' => "$wgSitename user(s) $1", 'creditspage' => 'Page credits', 'nocredits' => 'There is no credits info available for this page.', -- 2.20.1