From 589258a7331282dedfb7743270bb3be40a3b8c45 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 17 Apr 2015 18:30:10 +0200 Subject: [PATCH] Always set suppressredirect of type move for new api logparam style Old log params for moves may omit the suppressredirect indicator, just add it as false when missing. This has no visible change for the old json or xml format, but it will be useful, when using the new json format, which also output bool=false Follow-Up: I6846ce09322eb404c506b5a51780a44ce9279fe2 Change-Id: I74981bf064a0b94707b5cc7ff7e5bb8fcdfe2123 --- includes/logging/MoveLogFormatter.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/logging/MoveLogFormatter.php b/includes/logging/MoveLogFormatter.php index e60708db62..7f5e9efab7 100644 --- a/includes/logging/MoveLogFormatter.php +++ b/includes/logging/MoveLogFormatter.php @@ -103,6 +103,10 @@ class MoveLogFormatter extends LogFormatter { } } + if ( !isset( $params['5:bool:suppressredirect'] ) ) { + $params['5:bool:suppressredirect'] = false; + } + return $params; } -- 2.20.1