From: umherirrender Date: Fri, 14 Aug 2015 12:51:32 +0000 (+0200) Subject: Pass user to WikiPage::doEditContent from EditPage X-Git-Tag: 1.31.0-rc.0~10389^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=22d4ef527efe01e7ec64adfe02fa4ff7d6caf84a;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() );