$fields = array(
'log_id', 'log_type', 'log_action', 'log_timestamp',
'log_user', 'log_user_text',
- 'log_namespace', 'log_title', //unused log_page
+ 'log_namespace', 'log_title', // unused log_page
'log_comment', 'log_params', 'log_deleted',
'user_id', 'user_name', 'user_editcount',
);
}
/**
- * Set extra log parameters.
+ * Set extra log parameters.
* You can pass params to the log action message
* by prefixing the keys with a number and colon.
* The numbering should start with number 4, the
if ( $entry->isLegacy() ) {
foreach ( $entry->getParameters() as $index => $value ) {
- $params[$index+3] = $value;
+ $params[$index + 3] = $value;
}
}
foreach ( $entry->getParameters() as $key => $value ) {
if ( strpos( $key, ':' ) === false ) continue;
list( $index, $type, $name ) = explode( ':', $key, 3 );
- $params[$index-1] = $value;
+ $params[$index - 1] = $value;
}
/* Message class doesn't like non consecutive numbering.