r55986 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r55985‎ | r55986 | r55987 >
Date:18:49, 7 September 2009
Author:midom
Status:ok
Tags:
Comment:
micro-optimization for front page views :-)
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -795,9 +795,9 @@
796796 # tents of 'pagetitle-view-mainpage' instead of the default (if
797797 # that's not empty).
798798 if( $this->mTitle->equals( Title::newMainPage() )
799 - && wfMsgForContent( 'pagetitle-view-mainpage' ) !== '' )
 799+ && ($m=wfMsgForContent( 'pagetitle-view-mainpage' )) !== '' )
800800 {
801 - $wgOut->setHTMLTitle( wfMsgForContent( 'pagetitle-view-mainpage' ) );
 801+ $wgOut->setHTMLTitle( $m );
802802 }
803803
804804 $wasRedirected = $this->showRedirectedFromHeader();

Status & tagging log