From: umherirrender Date: Fri, 17 Apr 2015 16:30:10 +0000 (+0200) Subject: Always set suppressredirect of type move for new api logparam style X-Git-Tag: 1.31.0-rc.0~11672^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=589258a7331282dedfb7743270bb3be40a3b8c45;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }