Fixed undefined variable in addTagsAccompanyingChangeWithChecks()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 27 Apr 2015 22:43:41 +0000 (15:43 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 27 Apr 2015 22:43:41 +0000 (15:43 -0700)
Change-Id: I53d9147fb51e354305b1d1739545c35228d66522

includes/changetags/ChangeTags.php

index 43f957c..cf33484 100644 (file)
@@ -382,8 +382,9 @@ class ChangeTags {
         * @return Status
         * @since 1.25
         */
-       public static function addTagsAccompanyingChangeWithChecks( array $tags,
-               $rc_id, $rev_id, $log_id, $params, User $user ) {
+       public static function addTagsAccompanyingChangeWithChecks(
+               array $tags, $rc_id, $rev_id, $log_id, $params, User $user
+       ) {
 
                // are we allowed to do this?
                $result = self::canAddTagsAccompanyingChange( $tags, $user );
@@ -393,7 +394,7 @@ class ChangeTags {
                }
 
                // do it!
-               self::addTags( $tagsToAdd, $rc_id, $rev_id, $log_id, $params );
+               self::addTags( $tags, $rc_id, $rev_id, $log_id, $params );
 
                return Status::newGood( true );
        }