Use $this->getLang() per Nikerabbit on r91648.
authorRobin Pepermans <robin@users.mediawiki.org>
Wed, 20 Jul 2011 22:31:47 +0000 (22:31 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Wed, 20 Jul 2011 22:31:47 +0000 (22:31 +0000)
includes/Article.php

index 5c57736..33aac38 100644 (file)
@@ -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( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>",
                        'clearyourcache' );