}
function run() {
+ $enotif = new EmailNotification();
// Get the user from ID (rename safe). Anons are 0, so defer to name.
if( isset($this->params['editorID']) && $this->params['editorID'] ) {
$editor = User::newFromId( $this->params['editorID'] );
} else {
$editor = User::newFromName( $this->params['editor'], false );
}
- PageChangeNotification::actuallyNotifyOnPageChange(
+ $enotif->actuallyNotifyOnPageChange(
$editor,
$this->title,
$this->params['timestamp'],
$this->params['summary'],
$this->params['minorEdit'],
- $this->params['oldid']
+ $this->params['oldid'],
+ $this->params['watchers']
);
return true;
}