r65394 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65393‎ | r65394 | r65395 >
Date:14:54, 21 April 2010
Author:tstarling
Status:ok
Tags:
Comment:
MFT r64934: fix total breakage of pagetitle-view-mainpage on language converter wikis
Modified paths:
  • /branches/wmf/1.16wmf4/includes/Article.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/Article.php
@@ -799,15 +799,6 @@
800800 wfIncrStats( 'pcache_miss_stub' );
801801 }
802802
803 - # For the main page, overwrite the <title> element with the con-
804 - # tents of 'pagetitle-view-mainpage' instead of the default (if
805 - # that's not empty).
806 - if ( $this->mTitle->equals( Title::newMainPage() )
807 - && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' )
808 - {
809 - $wgOut->setHTMLTitle( $m );
810 - }
811 -
812803 $wasRedirected = $this->showRedirectedFromHeader();
813804 $this->showNamespaceHeader();
814805
@@ -932,6 +923,15 @@
933924 }
934925 }
935926
 927+ # For the main page, overwrite the <title> element with the con-
 928+ # tents of 'pagetitle-view-mainpage' instead of the default (if
 929+ # that's not empty).
 930+ if ( $this->mTitle->equals( Title::newMainPage() )
 931+ && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' )
 932+ {
 933+ $wgOut->setHTMLTitle( $m );
 934+ }
 935+
936936 # Now that we've filled $this->mParserOutput, we know whether
937937 # there are any __NOINDEX__ tags on the page
938938 $policy = $this->getRobotPolicy( 'view' );
Property changes on: branches/wmf/1.16wmf4/includes/Article.php
___________________________________________________________________
Added: svn:mergeinfo
939939 Merged /branches/sqlite/includes/Article.php:r58211-58321
940940 Merged /trunk/phase3/includes/Article.php:r63549,63764,63897-63901,64934
941941 Merged /branches/wmf-deployment/includes/Article.php:r53381,60970
942942 Merged /branches/REL1_15/phase3/includes/Article.php:r51646

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r64934Follow up r64876. Try to fix pagetitle-view-mainpage.philip13:04, 11 April 2010

Status & tagging log