From b5066db9633c45949c1c68aff12042a3216b228e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 26 Dec 2011 14:15:42 +0000 Subject: [PATCH] Follow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect.php maintenance script --- includes/WikiPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.20.1