r23782 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23781‎ | r23782 | r23783 >
Date:09:06, 6 July 2007
Author:yurik
Status:old
Tags:
Comment:
changed updateArticle to doEdit. This is first of a large series of changes we must do to enable api commits.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2262,7 +2262,11 @@
22632263 $wgOut->setRobotpolicy( 'noindex,nofollow' );
22642264 $wgOut->addHTML( '<h2>' . htmlspecialchars( $newComment ) . "</h2>\n<hr />\n" );
22652265
2266 - $this->updateArticle( $target->getText(), $newComment, 1, $this->mTitle->userIsWatching(), $bot );
 2266+ $flags = EDIT_UPDATE | EDIT_MINOR;
 2267+ if($bot)
 2268+ $flags |= EDIT_FORCE_BOT;
 2269+ if(!$this->doEdit( $target->getText(), $newComment, $flags))
 2270+ ; # todo: this error case has not been handled? Use db transactions?
22672271
22682272 $wgOut->returnToMain( false );
22692273 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r23912Merged revisions 23662-23909 via svnmerge from...david18:11, 9 July 2007

Status & tagging log