From d4f8bd4fd25e1898a40ffa266ee5be30db075b01 Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Wed, 20 Jul 2011 22:31:47 +0000 Subject: [PATCH] Use $this->getLang() per Nikerabbit on r91648. --- includes/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 5c57736de9..33aac3835a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -609,10 +609,10 @@ class Article extends Page { * page views. */ protected function showCssOrJsPage() { - global $wgOut, $wgLang; + global $wgOut; - $dir = $wgLang->getDir(); - $lang = $wgLang->getCode(); + $dir = $this->getLang()->getDir(); + $lang = $this->getLang()->getCode(); $wgOut->wrapWikiMsg( "
\n$1\n
", 'clearyourcache' ); -- 2.20.1