r107383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107382‎ | r107383 | r107384 >
Date:15:15, 27 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Pass the user doing the upload to WikiPage::doEdit()
Modified paths:
  • /trunk/phase3/includes/filerepo/file/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/file/LocalFile.php
@@ -1096,7 +1096,7 @@
10971097 # New file; create the description page.
10981098 # There's already a log entry, so don't make a second RC entry
10991099 # Squid and file cache for the description page are purged by doEdit.
1100 - $wikiPage->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC );
 1100+ $wikiPage->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC, false, $user );
11011101 }
11021102
11031103 # Commit the transaction now, in case something goes wrong later

Status & tagging log