PatrolLogFormatter: Tag curid and previd as numbers for API
In the database the values might be strings, depending on the source of the RecentChanges object when the log entry was created. In getParametersForApi(), tag the vars as 'number' so they'll always be output as actual integers. Bug: T101603 Change-Id: I6d3e8fd2653ce810eec59b94bf75063e5fb6bcab
This commit is contained in:
parent
b5fd67d8d8
commit
1dc97335ae
1 changed files with 4 additions and 2 deletions
|
|
@ -68,9 +68,11 @@ class PatrolLogFormatter extends LogFormatter {
|
|||
$params = $entry->getParameters();
|
||||
|
||||
static $map = array(
|
||||
'4::curid',
|
||||
'5::previd',
|
||||
'4:number:curid',
|
||||
'5:number:previd',
|
||||
'6:bool:auto',
|
||||
'4::curid' => '4:number:curid',
|
||||
'5::previd' => '5:number:previd',
|
||||
'6::auto' => '6:bool:auto',
|
||||
);
|
||||
foreach ( $map as $index => $key ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue