r92702 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92701‎ | r92702 | r92703 >
Date:22:31, 20 July 2011
Author:robin
Status:resolved
Tags:
Comment:
Use $this->getLang() per Nikerabbit on r91648.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -609,10 +609,10 @@
610610 * page views.
611611 */
612612 protected function showCssOrJsPage() {
613 - global $wgOut, $wgLang;
 613+ global $wgOut;
614614
615 - $dir = $wgLang->getDir();
616 - $lang = $wgLang->getCode();
 615+ $dir = $this->getLang()->getDir();
 616+ $lang = $this->getLang()->getCode();
617617
618618 $wgOut->wrapWikiMsg( "<div id='mw-clearyourcache' lang='$lang' dir='$dir' class='mw-content-$dir'>\n$1\n</div>",
619619 'clearyourcache' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r92785Fix for r92702: there's no such method in Article classialex20:23, 21 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91648(Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly wher...robin16:15, 7 July 2011

Status & tagging log