From 3fe642aaf3ae0de0d76fc88b74af4ce3b476b366 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 5 Oct 2011 14:46:10 +0000 Subject: [PATCH] * Use local context instead of global variables * Call Linker methods statically --- includes/specials/SpecialAncientpages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialAncientpages.php b/includes/specials/SpecialAncientpages.php index cbb5df8025..680a948205 100644 --- a/includes/specials/SpecialAncientpages.php +++ b/includes/specials/SpecialAncientpages.php @@ -59,14 +59,14 @@ class AncientPagesPage extends QueryPage { } function formatResult( $skin, $result ) { - global $wgLang, $wgContLang; + global $wgContLang; - $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true ); + $d = $this->getLang()->timeanddate( wfTimestamp( TS_MW, $result->value ), true ); $title = Title::makeTitle( $result->namespace, $result->title ); - $link = $skin->linkKnown( + $link = Linker::linkKnown( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); - return wfSpecialList( $link, htmlspecialchars($d) ); + return wfSpecialList( $link, htmlspecialchars( $d ) ); } } -- 2.20.1