From: Alexandre Emsenhuber Date: Sat, 6 Nov 2010 16:22:18 +0000 (+0000) Subject: Revert r76174 and call directly UserMailer::send() X-Git-Tag: 1.31.0-rc.0~34040 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=e84e6c62b8d031dd69ba5a81c21a74736ebfe844;p=lhc%2Fweb%2Fwiklou.git Revert r76174 and call directly UserMailer::send() --- diff --git a/includes/job/EmaillingJob.php b/includes/job/EmaillingJob.php index 793a229b7f..89b74a4147 100644 --- a/includes/job/EmaillingJob.php +++ b/includes/job/EmaillingJob.php @@ -12,15 +12,13 @@ * * @ingroup JobQueue */ -require_once dirname( __FILE__ ) . '/../UserMailer.php'; - 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'],