r40845 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40844‎ | r40845 | r40846 >
Date:05:34, 15 September 2008
Author:tstarling
Status:old
Tags:
Comment:
Fix $user parameter to Article::doEdit(), which was broken for page creation (worked only for page updates).
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1562,7 +1562,9 @@
15631563 'page' => $newid,
15641564 'comment' => $summary,
15651565 'minor_edit' => $isminor,
1566 - 'text' => $text
 1566+ 'text' => $text,
 1567+ 'user' => $user->getId(),
 1568+ 'user_text' => $user->getName(),
15671569 ) );
15681570 $revisionId = $revision->insertOn( $dbw );
15691571

Follow-up revisions

RevisionCommit summaryAuthorDate
r40846Revert r40806 (never use RC). Use the $user parameter to Article::doEdit() in...tstarling05:46, 15 September 2008