]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - includes/job/EmaillingJob.php
MediaWiki 1.17.0
[autoinstalls/mediawiki.git] / includes / job / EmaillingJob.php
similarity index 82%
rename from includes/EmaillingJob.php
rename to includes/job/EmaillingJob.php
index 380c89824964b8d0edb8f0331dd2a7af1c667c23..89b74a41471575c008d316386424778894e5dfab 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+/**
+ * Old job for notification emails.
+ *
+ * @file
+ * @ingroup JobQueue
+ */
 
 /**
  * Old job used for sending single notification emails;
  * @ingroup JobQueue
  */
 class EmaillingJob extends Job {
-
        function __construct( $title, $params, $id = 0 ) {
                parent::__construct( 'sendMail', Title::newMainPage(), $params, $id );
        }
 
        function run() {
-               userMailer(
+               UserMailer::send(
                        $this->params['to'],
                        $this->params['from'],
                        $this->params['subj'],