From: Alexandre Emsenhuber Date: Tue, 27 Dec 2011 15:15:38 +0000 (+0000) Subject: Pass the user doing the upload to WikiPage::doEdit() X-Git-Tag: 1.31.0-rc.0~25720 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=f0faee8ae9c6d0b0982ddff4a6c7f56f4137ad6c;p=lhc%2Fweb%2Fwiklou.git Pass the user doing the upload to WikiPage::doEdit() --- diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 251d325058..672b224700 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -1096,7 +1096,7 @@ class LocalFile extends File { # New file; create the description page. # There's already a log entry, so don't make a second RC entry # Squid and file cache for the description page are purged by doEdit. - $wikiPage->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC ); + $wikiPage->doEdit( $pageText, $comment, EDIT_NEW | EDIT_SUPPRESS_RC, false, $user ); } # Commit the transaction now, in case something goes wrong later