Follow-up r106567: pass the User object to LogPage::addEntry(); was breaking protect...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 26 Dec 2011 14:15:42 +0000 (14:15 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 26 Dec 2011 14:15:42 +0000 (14:15 +0000)
includes/WikiPage.php

index 333eaf0..3dd3e10 100644 (file)
@@ -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();
        }