Fix for r92702: there's no such method in Article class
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Jul 2011 20:23:30 +0000 (20:23 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Jul 2011 20:23:30 +0000 (20:23 +0000)
includes/Article.php

index 33aac38..998f378 100644 (file)
@@ -611,8 +611,8 @@ class Article extends Page {
        protected function showCssOrJsPage() {
                global $wgOut;
 
-               $dir = $this->getLang()->getDir();
-               $lang = $this->getLang()->getCode();
+               $dir = $this->getContext()->getLang()->getDir();
+               $lang = $this->getContext()->getLang()->getCode();
 
                $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>",
                        'clearyourcache' );