Always set suppressredirect of type move for new api logparam style
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 17 Apr 2015 16:30:10 +0000 (18:30 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Fri, 17 Apr 2015 16:32:48 +0000 (18:32 +0200)
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

index e60708d..7f5e9ef 100644 (file)
@@ -103,6 +103,10 @@ class MoveLogFormatter extends LogFormatter {
                        }
                }
 
+               if ( !isset( $params['5:bool:suppressredirect'] ) ) {
+                       $params['5:bool:suppressredirect'] = false;
+               }
+
                return $params;
        }