Don't fatal on invalid timestamps
authorKunal Mehta <legoktm@member.fsf.org>
Thu, 27 Oct 2016 19:06:30 +0000 (12:06 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 3 Nov 2016 19:09:13 +0000 (19:09 +0000)
commit153d117b60f48218f8a90b0220061f330e4f45c3
tree49c7f0cba18f20107481a1183aa09891b3a9e111
parent0d4e0135c4cd04beebbd689375983e7aadf9b529
Don't fatal on invalid timestamps

Database::timestamp() intentionally lets errors bubble up, so catch
invalid user-provided timestamps in
ReverseChronologicalPage::getDateCond(), and avoid using an offset in
that case.

Bug: T149257
Change-Id: Ida85eb44b66e8a0166e7f68a101ff094e04b1c8e
includes/pager/ReverseChronologicalPager.php