mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-15 11:59:11 +00:00
5e2da7627b
The logic to get the URL for an icon was duplicated in the EmailFormatter and BasicFormatter. It is now in the abstract NotificationFormatter, which EmailFormatter and BasicFormatter now use. Changes in logic: * Throw an exception if an invalid notification type is provided instead of a PHP notice * icons using 'url' may have different ltr/rtl icons * Throw exception if icon is supposed to have different icons for ltr/rtl, but doesn't, instead of debug logging The new function is static so it can be used in EmailFormatter as it does not inherit from NotificationFormatter. Bug: T60726 Change-Id: Ia3c01c35f58eed8cc2c039249ab1ec1a80a8abbb |
||
---|---|---|
.. | ||
BasicFormatter.php | ||
CommentFormatter.php | ||
EditFormatter.php | ||
EditUserTalkFormatter.php | ||
MentionFormatter.php | ||
NotificationFormatter.php | ||
PageLinkFormatter.php | ||
UserRightsFormatter.php |