ApiResult: Add ApiResult::formatExpiry()
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 11 Jan 2017 19:04:41 +0000 (11:04 -0800)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 11 Jan 2017 19:11:19 +0000 (11:11 -0800)
commita0664196282614ddd033737edd39b4bd9d2e056f
treebe05c77d8f936c1b9ca118495099e0a9b87c0483
parent215d466ca94bfff667bd926b676d0b15e0215a68
ApiResult: Add ApiResult::formatExpiry()

This allows for removing $wgContLang from many API modules where it was
only used to call $wgContLang->formatExpiry() in a way in which the
results don't actually depend on the language.

Change-Id: Ib0f25f288b9b87d2e4131297c552e5971696db87
includes/api/ApiBlock.php
includes/api/ApiProtect.php
includes/api/ApiQueryBlocks.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryProtectedTitles.php
includes/api/ApiQueryUserInfo.php
includes/api/ApiResult.php