API: Move parameter formatting into LogFormatter
authorBrad Jorsch <bjorsch@wikimedia.org>
Sun, 10 Aug 2014 10:25:29 +0000 (11:25 +0100)
committerLegoktm <legoktm.wikipedia@gmail.com>
Fri, 17 Apr 2015 04:59:41 +0000 (04:59 +0000)
commit61233fc84724833dc487ecc55e27c1b39459befc
tree80571df4f7eadcdedf361ead6181f801e0f08d35
parentb41393b036cce21fdb669889d57fbd99d611f03b
API: Move parameter formatting into LogFormatter

This allows for extensions to format their log entry parameters, and
keeps the code for formatting API log entry parameters in the same place
as for other formatting.

This also takes the opportunity to rearrange the output format slightly
to avoid conflicts like what's happening in T73020.

Bug: T35235
Bug: T73020
Bug: T91466
Change-Id: I6846ce09322eb404c506b5a51780a44ce9279fe2
16 files changed:
RELEASE-NOTES-1.25
autoload.php
includes/DefaultSettings.php
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryWatchlist.php
includes/logging/BlockLogFormatter.php
includes/logging/DeleteLogFormatter.php
includes/logging/LogFormatter.php
includes/logging/MergeLogFormatter.php
includes/logging/MoveLogFormatter.php
includes/logging/PatrolLogFormatter.php
includes/logging/RightsLogFormatter.php
includes/logging/UploadLogFormatter.php [new file with mode: 0644]
includes/revisiondelete/RevDelLogItem.php
tests/phpunit/includes/logging/LogFormatterTest.php