From 6550899bddeee2da930e99014dd7bfd314fb3df0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 11 Oct 2011 13:12:40 +0000 Subject: [PATCH] * Use local context instead of global variables * Call Linker methods statically --- includes/specials/SpecialListredirects.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialListredirects.php b/includes/specials/SpecialListredirects.php index acf5fbd9c1..a5adb61ec8 100644 --- a/includes/specials/SpecialListredirects.php +++ b/includes/specials/SpecialListredirects.php @@ -98,7 +98,7 @@ class ListredirectsPage extends QueryPage { function formatResult( $skin, $result ) { # Make a link to the redirect itself $rd_title = Title::makeTitle( $result->namespace, $result->title ); - $rd_link = $skin->link( + $rd_link = Linker::link( $rd_title, null, array(), @@ -108,10 +108,10 @@ class ListredirectsPage extends QueryPage { # Find out where the redirect leads $target = $this->getRedirectTarget( $result ); if( $target ) { - global $wgLang; # Make a link to the destination page - $arr = $wgLang->getArrow() . $wgLang->getDirMark(); - $targetLink = $skin->link( $target ); + $lang = $this->getLang(); + $arr = $lang->getArrow() . $lang->getDirMark(); + $targetLink = Linker::link( $target ); return "$rd_link $arr $targetLink"; } else { return "$rd_link"; -- 2.20.1