Merge "Fix linking Special:ChangeContentModel from action=info"
[lhc/web/wiklou.git] / includes / changes / RecentChange.php
index 7ae1f29..81f64a8 100644 (file)
@@ -333,7 +333,7 @@ class RecentChange {
 
                if ( count( $this->tags ) ) {
                        ChangeTags::addTags( $this->tags, $this->mAttribs['rc_id'],
-                               $this->mAttribs['rc_this_oldid'], $this->mAttribs['rc_logid'], null );
+                               $this->mAttribs['rc_this_oldid'], $this->mAttribs['rc_logid'], null, $this );
                }
 
                # Notify external application via UDP
@@ -762,6 +762,7 @@ class RecentChange {
                # # Get pageStatus for email notification
                switch ( $type . '-' . $action ) {
                        case 'delete-delete':
+                       case 'delete-delete_redir':
                                $pageStatus = 'deleted';
                                break;
                        case 'move-move':
@@ -1037,9 +1038,13 @@ class RecentChange {
         *
         * @since 1.28
         *
-        * @param array $tags
+        * @param string|array $tags
         */
        public function addTags( $tags ) {
-               $this->tags = array_merge( $tags, $this->tags );
+               if ( is_string( $tags ) ) {
+                       $this->tags[] = $tags;
+               } else {
+                       $this->tags = array_merge( $tags, $this->tags );
+               }
        }
 }