* improved script loader language support
[lhc/web/wiklou.git] / includes / EnotifNotifyJob.php
index 08781df..f7178d0 100644 (file)
@@ -12,6 +12,7 @@ class EnotifNotifyJob extends Job {
        }
 
        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'] );
@@ -19,13 +20,14 @@ class EnotifNotifyJob extends Job {
                } 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;
        }