Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / includes / jobqueue / jobs / EmaillingJob.php
index df8ae63..960e882 100644 (file)
@@ -28,7 +28,7 @@
  * @ingroup JobQueue
  */
 class EmaillingJob extends Job {
-       function __construct( $title, $params ) {
+       function __construct( Title $title = null, array $params ) {
                parent::__construct( 'sendMail', Title::newMainPage(), $params );
        }
 
@@ -38,7 +38,7 @@ class EmaillingJob extends Job {
                        $this->params['from'],
                        $this->params['subj'],
                        $this->params['body'],
-                       $this->params['replyto']
+                       [ 'replyTo' => $this->params['replyto'] ]
                );
 
                return $status->isOK();