includes/logging/MergeLogFormatter.php 1 location
|
@@ 82-87 (lines=6) @@
|
79 |
|
'4::dest' => '4:title:dest', |
80 |
|
'5::mergepoint' => '5:timestamp:mergepoint', |
81 |
|
]; |
82 |
|
foreach ( $map as $index => $key ) { |
83 |
|
if ( isset( $params[$index] ) ) { |
84 |
|
$params[$key] = $params[$index]; |
85 |
|
unset( $params[$index] ); |
86 |
|
} |
87 |
|
} |
88 |
|
|
89 |
|
return $params; |
90 |
|
} |
includes/logging/MoveLogFormatter.php 1 location
|
@@ 99-104 (lines=6) @@
|
96 |
|
'4::target' => '4:title:target', |
97 |
|
'5::noredir' => '5:bool:suppressredirect', |
98 |
|
]; |
99 |
|
foreach ( $map as $index => $key ) { |
100 |
|
if ( isset( $params[$index] ) ) { |
101 |
|
$params[$key] = $params[$index]; |
102 |
|
unset( $params[$index] ); |
103 |
|
} |
104 |
|
} |
105 |
|
|
106 |
|
if ( !isset( $params['5:bool:suppressredirect'] ) ) { |
107 |
|
$params['5:bool:suppressredirect'] = false; |
includes/logging/ProtectLogFormatter.php 1 location
|
@@ 132-137 (lines=6) @@
|
129 |
|
'4::oldtitle' => '4:title:oldtitle', |
130 |
|
]; |
131 |
|
} |
132 |
|
foreach ( $map as $index => $key ) { |
133 |
|
if ( isset( $params[$index] ) ) { |
134 |
|
$params[$key] = $params[$index]; |
135 |
|
unset( $params[$index] ); |
136 |
|
} |
137 |
|
} |
138 |
|
|
139 |
|
// Change string to explicit boolean |
140 |
|
if ( isset( $params['5:bool:cascade'] ) && is_string( $params['5:bool:cascade'] ) ) { |
includes/logging/UploadLogFormatter.php 1 location
|
@@ 39-44 (lines=6) @@
|
36 |
|
static $map = [ |
37 |
|
'img_timestamp' => ':timestamp:img_timestamp', |
38 |
|
]; |
39 |
|
foreach ( $map as $index => $key ) { |
40 |
|
if ( isset( $params[$index] ) ) { |
41 |
|
$params[$key] = $params[$index]; |
42 |
|
unset( $params[$index] ); |
43 |
|
} |
44 |
|
} |
45 |
|
|
46 |
|
return $params; |
47 |
|
} |
includes/logging/PatrolLogFormatter.php 1 location
|
@@ 79-84 (lines=6) @@
|
76 |
|
'5::previd' => '5:number:previd', |
77 |
|
'6::auto' => '6:bool:auto', |
78 |
|
]; |
79 |
|
foreach ( $map as $index => $key ) { |
80 |
|
if ( isset( $params[$index] ) ) { |
81 |
|
$params[$key] = $params[$index]; |
82 |
|
unset( $params[$index] ); |
83 |
|
} |
84 |
|
} |
85 |
|
|
86 |
|
return $params; |
87 |
|
} |
includes/logging/BlockLogFormatter.php 1 location
|
@@ 184-189 (lines=6) @@
|
181 |
|
'6:array:flags', |
182 |
|
'6::flags' => '6:array:flags', |
183 |
|
]; |
184 |
|
foreach ( $map as $index => $key ) { |
185 |
|
if ( isset( $params[$index] ) ) { |
186 |
|
$params[$key] = $params[$index]; |
187 |
|
unset( $params[$index] ); |
188 |
|
} |
189 |
|
} |
190 |
|
|
191 |
|
$subtype = $entry->getSubtype(); |
192 |
|
if ( $subtype === 'block' || $subtype === 'reblock' ) { |
includes/logging/RightsLogFormatter.php 1 location
|
@@ 122-127 (lines=6) @@
|
119 |
|
'4::oldgroups' => '4:array:oldgroups', |
120 |
|
'5::newgroups' => '5:array:newgroups', |
121 |
|
]; |
122 |
|
foreach ( $map as $index => $key ) { |
123 |
|
if ( isset( $params[$index] ) ) { |
124 |
|
$params[$key] = $params[$index]; |
125 |
|
unset( $params[$index] ); |
126 |
|
} |
127 |
|
} |
128 |
|
|
129 |
|
// Really old entries does not have log params |
130 |
|
if ( isset( $params['4:array:oldgroups'] ) ) { |