From: Alexandre Emsenhuber Date: Mon, 26 Dec 2011 14:15:42 +0000 (+0000) Subject: Follow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect... X-Git-Tag: 1.31.0-rc.0~25747 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=b5066db9633c45949c1c68aff12042a3216b228e;p=lhc%2Fweb%2Fwiklou.git Follow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect.php maintenance script --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 333eaf0549..3dd3e106ab 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1526,7 +1526,7 @@ class WikiPage extends Page { # Update the protection log $log = new LogPage( 'protect' ); - $log->addEntry( $logAction, $this->mTitle, trim( $reason ), $logParams ); + $log->addEntry( $logAction, $this->mTitle, trim( $reason ), $logParams, $user ); return Status::newGood(); }