From f0faee8ae9c6d0b0982ddff4a6c7f56f4137ad6c Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 27 Dec 2011 15:15:38 +0000 Subject: [PATCH] Pass the user doing the upload to WikiPage::doEdit() --- includes/filerepo/file/LocalFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1