Merge "Split down patch-comment-table.sql"
[lhc/web/wiklou.git] / includes / logging / PatrolLog.php
index 9b2e098..9392220 100644 (file)
@@ -33,8 +33,8 @@ class PatrolLog {
         *
         * @param int|RecentChange $rc Change identifier or RecentChange object
         * @param bool $auto Was this patrol event automatic?
-        * @param User $user User performing the action or null to use $wgUser
-        * @param string|string[] $tags Change tags to add to the patrol log entry
+        * @param User|null $user User performing the action or null to use $wgUser
+        * @param string|string[]|null $tags Change tags to add to the patrol log entry
         *   ($user should be able to add the specified tags before this is called)
         *
         * @return bool
@@ -63,7 +63,7 @@ class PatrolLog {
                $entry->setTarget( $rc->getTitle() );
                $entry->setParameters( self::buildParams( $rc, $auto ) );
                $entry->setPerformer( $user );
-               $entry->setTags( $tags );
+               $entry->addTags( $tags );
                $logid = $entry->insert();
                if ( !$auto ) {
                        $entry->publish( $logid, 'udp' );