mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +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 |
||
---|---|---|
.. | ||
api | ||
cache | ||
controller | ||
exception | ||
formatters | ||
gateway | ||
iterator | ||
jobs | ||
mapper | ||
model | ||
special | ||
AttributeManager.php | ||
BatchRowUpdate.php | ||
ContainmentSet.php | ||
DataOutputFormatter.php | ||
DeferredMarkAsReadUpdate.php | ||
DiffParser.php | ||
DiscussionParser.php | ||
EchoDbFactory.php | ||
EmailBatch.php | ||
EmailBundler.php | ||
EmailFormatter.php | ||
EventLogging.php | ||
NotifUser.php | ||
schemaUpdate.php | ||
UserLocator.php |