Parent5446 has uploaded a new change for review. Change subject: Refactor MWTimestamp::getHumanTimestamp and add hook. ......................................................................
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 --- M docs/hooks.txt M includes/Timestamp.php M languages/Language.php M languages/messages/MessagesEn.php M languages/messages/MessagesQqq.php M maintenance/language/messages.inc M tests/phpunit/includes/TimestampTest.php 7 files changed, 384 insertions(+), 57 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/51/45651/1 -- To view, visit https://gerrit.wikimedia.org/r/45651 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie667088010e24eb6cb569f9e8e8e2553005223eb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Parent5446 <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
