Fix parameter order for block logs
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 22 Feb 2015 20:41:37 +0000 (21:41 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Tue, 24 Feb 2015 18:37:03 +0000 (19:37 +0100)
commitce4af8b873746054b5dbe753496da844e61d402e
tree9613b060c773037690a294b8c751ac0b047b2308
parent85298ef5925a22ff739070b81fc970733a050ca0
Fix parameter order for block logs

The new block log params does not known the message number 4 (which is
index 3), therefore LogFormatter::getMessageParameters adds empty index
to keep the sequence in strong order.
But the loop was starting at index 4, not 3, which skips the needed
empty index 3 for the order.

Due to the missing $4 the legacy log params returning index 3 and 4,
therefore move them one up to match the new numbers.

Also fixed undefined index warnings for api's list=logevents

Follow-Up: Ibc7fcaa5a952ff90d42a6477da4baa429f3de64b
Change-Id: Ie23be129ee2bd1d2bf753c3b5cba293d64b8e0e8
includes/api/ApiQueryLogEvents.php
includes/logging/BlockLogFormatter.php
includes/logging/LogFormatter.php