Remove ?>'s from files. They're pointless, and just asking for people to mess with...
[lhc/web/wiklou.git] / includes / Credits.php
index a31c4f9..580a8d9 100644 (file)
@@ -18,7 +18,6 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  *
  * @author <evan@wikitravel.org>
- * @package MediaWiki
  */
 
 /**
@@ -171,8 +170,9 @@ function getContributorCredits($article, $cnt, $showIfMax) {
  *
  */
 function creditLink($user_name, $link_text = '') {
-       global $wgContLang;
-       return Linker::makeLink($wgContLang->getNsText(NS_USER) . ':' . $user_name,
+       global $wgUser, $wgContLang;
+       $skin = $wgUser->getSkin();
+       return $skin->makeLink($wgContLang->getNsText(NS_USER) . ':' . $user_name,
                               htmlspecialchars( (empty($link_text)) ? $user_name : $link_text ));
 }
 
@@ -180,7 +180,9 @@ function creditLink($user_name, $link_text = '') {
  *
  */
 function creditOthersLink($article) {
-       return Linker::makeKnownLink($article->mTitle->getPrefixedText(), wfMsg('others'), 'action=credits');
+       global $wgUser;
+       $skin = $wgUser->getSkin();
+       return $skin->makeKnownLink($article->mTitle->getPrefixedText(), wfMsg('others'), 'action=credits');
 }
 
-?>
+