Refactor MWTimestamp::getHumanTimestamp and add hook.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Thu, 24 Jan 2013 21:14:21 +0000 (16:14 -0500)
committerkaldari <kaldari@gmail.com>
Mon, 22 Apr 2013 19:07:22 +0000 (12:07 -0700)
commit7e3386d41774fcfefea696a30b1a434aabfb0db2
treea33920757e569525d6a943928e41d12b1a1d09d4
parentaf125df5199b5c232bf335d735cecc6d8f8e9784
Refactor MWTimestamp::getHumanTimestamp and add hook.

Changed logic in MWTimestamp::getHumanTimestamp so that
all the message and formatting was offloaded into the
Language class, keeping only actual timestamp logic in
the MWTimestamp class.

Also added a hook so extensions can override the
human timestamp format.

Change-Id: Ie667088010e24eb6cb569f9e8e8e2553005223eb
docs/hooks.txt
includes/Timestamp.php
languages/Language.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc
tests/phpunit/includes/TimestampTest.php