Return boolean from status object.
authornischayn22 <nischayn22@gmail.com>
Fri, 15 Feb 2013 13:22:01 +0000 (18:52 +0530)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Feb 2013 19:27:39 +0000 (19:27 +0000)
Change-Id: I37e4c37423f16bee6342ffce02383db251d900cd

includes/job/jobs/EmaillingJob.php

index d359988..9fbf312 100644 (file)
@@ -33,14 +33,15 @@ class EmaillingJob extends Job {
        }
 
        function run() {
-               UserMailer::send(
+               $status = UserMailer::send(
                        $this->params['to'],
                        $this->params['from'],
                        $this->params['subj'],
                        $this->params['body'],
                        $this->params['replyto']
                );
-               return true;
+
+               return $status->isOK();
        }
 
 }