r84871 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84870‎ | r84871 | r84872 >
Date:18:45, 27 March 2011
Author:reedy
Status:ok
Tags:
Comment:
MFT r84870
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/ProofreadPage/ProofreadPage_body.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/ProofreadPage/ProofreadPage_body.php
@@ -883,11 +883,13 @@
884884 $firstpage = $links[1][0];
885885 }
886886 $firstpage_title = Title::newFromText( "$page_namespace:$firstpage" );
887 - $parser->getOutput()->addTemplate(
888 - $firstpage_title,
889 - $firstpage_title->getArticleID(),
890 - $firstpage_title->getLatestRevID()
891 - );
 887+ if ( $firstpage_title ) {
 888+ $parser->getOutput()->addTemplate(
 889+ $firstpage_title,
 890+ $firstpage_title->getArticleID(),
 891+ $firstpage_title->getLatestRevID()
 892+ );
 893+ }
892894 }
893895
894896 if( $header ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84870<yannf> http://fr.wikisource.org/wiki/Rig_V%C3%A9da...reedy18:44, 27 March 2011

Status & tagging log