From 22d4ef527efe01e7ec64adfe02fa4ff7d6caf84a Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 14 Aug 2015 14:51:32 +0200 Subject: [PATCH] Pass user to WikiPage::doEditContent from EditPage This avoids the use of $wgUser inside of WikiPage::doEditContent. It does not avoid the use of $wgUser in general, because EditPage does not know about context, but it will make the indirect use visible and a rewrite of EditPage can address the issue better. Change-Id: Ifbcf52f2f076dc5c177bea22f90eb3b9fb8e3224 --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 0ca2f80f49..f3a41c46b9 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1943,7 +1943,7 @@ class EditPage { $this->summary, $flags, false, - null, + $wgUser, $content->getDefaultFormat() ); -- 2.20.1