Move EmailNotification watchlist handling into helper method
authorErik Bernhardson <ebernhardson@wikimedia.org>
Tue, 9 Sep 2014 21:10:01 +0000 (14:10 -0700)
committerNemo bis <federicoleva@tiscali.it>
Thu, 18 Sep 2014 13:55:31 +0000 (13:55 +0000)
commit3069453eb33823d38dc1d17125b3fb67fb6fa863
treefec875e00ce0c14bcb53085e1cfc9863a5cc08fc
parent98168be936af8c0e5351568373bccd82b9be4e68
Move EmailNotification watchlist handling into helper method

Pulls one pure method with no state from EmailNotification into a
public static method.  This is done so that extensions (Flow, maybe
others) can replace the Email notifications with alternative ones (Echo)
while still updating the watchlist.

A better solution might be to extricate watchlist update from email
notifications, but this seems like a reasonable first step.

Bug: 66876
Change-Id: Iae213b87706c447b880244711e7747954423bb69
includes/mail/EmailNotification.php