From: Domas Mituzas Date: Mon, 7 Sep 2009 18:49:51 +0000 (+0000) Subject: micro-optimization for front page views :-) X-Git-Tag: 1.31.0-rc.0~39873 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=96e70938573298b6ff926913b71652ff58cd068e;p=lhc%2Fweb%2Fwiklou.git micro-optimization for front page views :-) --- diff --git a/includes/Article.php b/includes/Article.php index 9e8e370cf4..7a29c6a67e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -795,9 +795,9 @@ class Article { # tents of 'pagetitle-view-mainpage' instead of the default (if # that's not empty). if( $this->mTitle->equals( Title::newMainPage() ) - && wfMsgForContent( 'pagetitle-view-mainpage' ) !== '' ) + && ($m=wfMsgForContent( 'pagetitle-view-mainpage' )) !== '' ) { - $wgOut->setHTMLTitle( wfMsgForContent( 'pagetitle-view-mainpage' ) ); + $wgOut->setHTMLTitle( $m ); } $wasRedirected = $this->showRedirectedFromHeader();