Pass if log entry is legacy to ApiQueryLogEvents::addLogParams()
authorChad Horohoe <chadh@wikimedia.org>
Thu, 12 Mar 2015 18:53:21 +0000 (11:53 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Thu, 12 Mar 2015 18:57:03 +0000 (11:57 -0700)
Querying via ApiQueryRecentChanges and ApiQueryWatchlist did not
pass if a particular log entry was a legacy log entry.

Ultimately CheckUser should stop writing legacy style log entries
too but we can at least behave properly when we hit them.

Bug: T91466
Change-Id: I1564ec7e599e2f9d78775e63e06eca84db497a43

includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryWatchlist.php

index 1482034..aa22264 100644 (file)
@@ -542,7 +542,8 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
                                        $logEntry->getParameters(),
                                        $logEntry->getType(),
                                        $logEntry->getSubtype(),
-                                       $logEntry->getTimestamp()
+                                       $logEntry->getTimestamp(),
+                                       $logEntry->isLegacy()
                                );
                        }
                }
index 11008cf..3857a08 100644 (file)
@@ -419,7 +419,8 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
                                        $logEntry->getParameters(),
                                        $logEntry->getType(),
                                        $logEntry->getSubtype(),
-                                       $logEntry->getTimestamp()
+                                       $logEntry->getTimestamp(),
+                                       $logEntry->isLegacy()
                                );
                        }
                }