Scripts and data used for generating ZhConversion.php
[lhc/web/wiklou.git] / includes / Credits.php
index a92c9f9..8228052 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /**
  * Credits.php -- formats credits for articles
  * Copyright 2004, Evan Prodromou <evan@wikitravel.org>.
@@ -19,6 +18,7 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  * @author <evan@wikitravel.org>
+ * @package MediaWiki
  */
 
 /**
@@ -168,9 +168,9 @@ function getContributorCredits($article, $cnt, $showIfMax) {
  *
  */
 function creditLink($user_name, $link_text = '') {
-    global $wgUser, $wgLang;
+    global $wgUser, $wgContLang;
     $skin = $wgUser->getSkin();
-    return $skin->makeLink($wgLang->getNsText(NS_USER) . ':' . $user_name,
+    return $skin->makeLink($wgContLang->getNsText(NS_USER) . ':' . $user_name,
                           (empty($link_text)) ? $user_name : $link_text);
 }