mediawiki-extensions-Echo/includes
Kunal Mehta 5e2da7627b Refactor and unify icon URL logic
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
2015-08-06 04:17:14 +00:00
..
api ApiEchoMarkRead: Remove unused variable 2015-07-21 14:16:06 -07:00
cache The job queue does not run against multiple wikis at once 2015-06-01 19:26:06 -07:00
controller Fix doc comment in EchoNotificationController 2015-06-15 19:02:05 -07:00
exception Hygiene: Update method documentation & split exception to a file 2014-08-04 17:43:57 -07:00
formatters Refactor and unify icon URL logic 2015-08-06 04:17:14 +00:00
gateway Add support to mark all as read for "sections" 2014-08-13 17:16:19 -07:00
iterator Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00
jobs Avoid warnings on older queued EchoNotificationDeleteJobs 2015-07-02 15:08:14 -07:00
mapper Don't repopulate cache with potentially lagging DB data 2015-05-07 14:01:56 +02:00
model Flip EchoEvent::getUseJobQueue() default 2015-07-01 20:36:47 -07:00
special Userlogin is canonical name, not UserLogin 2015-07-08 11:26:27 +02:00
AttributeManager.php Fix more "the job queue can run against different wikis" 2015-07-31 12:19:53 -07:00
BatchRowUpdate.php Remove unused default value 2015-04-13 13:56:38 -07:00
ContainmentSet.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
DataOutputFormatter.php Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
DeferredMarkAsReadUpdate.php Mark notifications as read if they fail rendering 2014-09-08 14:22:10 -07:00
DiffParser.php Always assume a prefix-length of one. 2015-05-26 04:32:00 +02:00
DiscussionParser.php Remove useless and misleading comment 2015-07-31 15:46:53 -04:00
EchoDbFactory.php Fix more "the job queue can run against different wikis" 2015-07-31 12:19:53 -07:00
EmailBatch.php Use intval() to make string concatenation in DB query less scary 2015-06-08 14:36:08 -07:00
EmailBundler.php chmod 644 a few files 2015-07-03 19:31:15 +01:00
EmailFormatter.php Refactor and unify icon URL logic 2015-08-06 04:17:14 +00:00
EventLogging.php efLogServerSideEvent is deprecated 2014-08-21 15:19:27 +02:00
NotifUser.php Avoid an extra memcached lookup in MWEchoNotifUser::getNotificationCount() 2015-07-21 14:19:12 -07:00
schemaUpdate.php Remove unused code and fix missing/broken documentation 2014-06-04 04:54:00 +00:00
UserLocator.php Use batch queries for users-watching-title 2014-08-15 10:44:55 -07:00