r76099 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76098‎ | r76099 | r76100 >
Date:15:00, 5 November 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix article constructors
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)
  • /trunk/extensions/Translate/utils/MessageWebImporter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -443,7 +443,7 @@
444444 global $wgRequest;
445445
446446 // Add the section markers to the source page
447 - $article = new Article( $page->getTitle() );
 447+ $article = new Article( $page->getTitle(), 0 );
448448 $status = $article->doEdit(
449449 $page->getParse()->getSourcePageText(), // Content
450450 wfMsgForContent( 'tpt-mark-summary' ), // Summary
Index: trunk/extensions/Translate/utils/MessageWebImporter.php
@@ -322,7 +322,7 @@
323323 }
324324
325325 public static function doImport( $title, $message, $comment, $user = null, $editFlags = 0 ) {
326 - $article = new Article( $title );
 326+ $article = new Article( $title, 0 );
327327 $status = $article->doEdit( $message, $comment, $editFlags, false, $user );
328328 $success = $status->isOK();
329329

Status & tagging log