3 * Job for notification emails.
10 * Job for email notification mails
14 class EnotifNotifyJob
extends Job
{
16 function __construct( $title, $params, $id = 0 ) {
17 parent
::__construct( 'enotifNotify', $title, $params, $id );
21 $enotif = new EmailNotification();
22 // Get the user from ID (rename safe). Anons are 0, so defer to name.
23 if( isset( $this->params
['editorID'] ) && $this->params
['editorID'] ) {
24 $editor = User
::newFromId( $this->params
['editorID'] );
25 // B/C, only the name might be given.
27 # FIXME: newFromName could return false on a badly configured wiki.
28 $editor = User
::newFromName( $this->params
['editor'], false );
30 $enotif->actuallyNotifyOnPageChange(
33 $this->params
['timestamp'],
34 $this->params
['summary'],
35 $this->params
['minorEdit'],
36 $this->params
['oldid'],
37 $this->params
['watchers']