From fe53e8d894c45170096ce31366a295f22b67e7ed Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Sun, 1 Mar 2009 05:13:42 +0000 Subject: [PATCH] For move logs, log_params can have a "suppressedRedirect" boolean, as a second parameter. Adding support to display it. --- includes/api/ApiQueryLogEvents.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 245924c9a5..8b763d6969 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -160,9 +160,12 @@ class ApiQueryLogEvents extends ApiQueryBase { $vals2 = array(); ApiQueryBase :: addTitleInfo($vals2, $title, "new_"); $vals[$type] = $vals2; - $params = null; } } + if (isset ($params[1])) { + $vals[$type]['suppressedredirect'] = (bool) $params[1]; + } + $params = null; break; case 'patrol': $vals2 = array(); -- 2.20.1