r92785 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92784‎ | r92785 | r92786 >
Date:20:23, 21 July 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Fix for r92702: there's no such method in Article class
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -611,8 +611,8 @@
612612 protected function showCssOrJsPage() {
613613 global $wgOut;
614614
615 - $dir = $this->getLang()->getDir();
616 - $lang = $this->getLang()->getCode();
 615+ $dir = $this->getContext()->getLang()->getDir();
 616+ $lang = $this->getContext()->getLang()->getCode();
617617
618618 $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>",
619619 'clearyourcache' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92702Use $this->getLang() per Nikerabbit on r91648.robin22:31, 20 July 2011

Comments

#Comment by Nikerabbit (talk | contribs)   05:22, 22 July 2011

My bad :(

Status & tagging log