4 * Job for email notification mails
6 class EnotifNotifyJob
extends Job
{
8 function __construct( $title, $params, $id = 0 ) {
9 parent
::__construct( 'enotifNotify', $title, $params, $id );
13 $enotif = new EmailNotification();
14 // Get the user from ID (rename safe). Anons are 0, so defer to name.
15 if( isset($this->params
['editorID']) && $this->params
['editorID'] ) {
16 $editor = User
::newFromId( $this->params
['editorID'] );
17 // B/C, only the name might be given.
19 $editor = User
::newFromName( $this->params
['editor'], false );
21 $enotif->actuallyNotifyOnPageChange(
24 $this->params
['timestamp'],
25 $this->params
['summary'],
26 $this->params
['minorEdit'],
27 $this->params
['oldid']