r90102 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90101‎ | r90102 | r90103 >
Date:01:11, 15 June 2011
Author:krinkle
Status:ok
Tags:
Comment:
Using true instead of calling isMainPage() again.

(Follow-up r90099 CR, Poke r87212)
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -2689,7 +2689,7 @@
26902690 $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $this->getUser() );
26912691 }
26922692 if ( $title->isMainPage() ) {
2693 - $vars['wgIsMainPage'] = $title->isMainPage();
 2693+ $vars['wgIsMainPage'] = true;
26942694 }
26952695
26962696 // Allow extensions to add their custom variables to the global JS variables

Follow-up revisions

RevisionCommit summaryAuthorDate
r92348MFT to REL1_18:...hashar08:57, 16 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r87212Added wgIsMainPage (Title->isMainPage) to mw.config...krinkle19:46, 1 May 2011
r90099Only define 'isMainPage' if we are on the main page, the new mw.config librar...krinkle23:29, 14 June 2011

Status & tagging log