123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- class EnotifNotifyJob extends Job {
- function __construct( $title, $params, $id = 0 ) {
- parent::__construct( 'enotifNotify', $title, $params, $id );
- }
- function run() {
- $enotif = new EmailNotification();
-
- if( isset($this->params['editorID']) && $this->params['editorID'] ) {
- $editor = User::newFromId( $this->params['editorID'] );
-
- } else {
- $editor = User::newFromName( $this->params['editor'], false );
- }
- $enotif->actuallyNotifyOnPageChange(
- $editor,
- $this->title,
- $this->params['timestamp'],
- $this->params['summary'],
- $this->params['minorEdit'],
- $this->params['oldid'],
- $this->params['watchers']
- );
- return true;
- }
- }
|