ApiDelete: Don't pass $user to ChangeTags::addTags()
authorKunal Mehta <legoktm@gmail.com>
Mon, 19 Oct 2015 08:45:46 +0000 (01:45 -0700)
committerKunal Mehta <legoktm@gmail.com>
Mon, 19 Oct 2015 08:45:46 +0000 (01:45 -0700)
It doesn't take that as a parameter...

Change-Id: I9f78ba4151d131ecf4ca476ecead0ed60408becb

includes/api/ApiDelete.php

index acb260c..bfd841f 100644 (file)
@@ -100,7 +100,7 @@ class ApiDelete extends ApiBase {
 
                // Apply change tags to the log entry, if requested
                if ( count( $params['tags'] ) ) {
-                       ChangeTags::addTags( $params['tags'], null, null, $status->value, null, $user );
+                       ChangeTags::addTags( $params['tags'], null, null, $status->value, null );
                }
 
                $r = array(