Index: trunk/phase3/includes/job/EmaillingJob.php |
— | — | @@ -12,15 +12,13 @@ |
13 | 13 | * |
14 | 14 | * @ingroup JobQueue |
15 | 15 | */ |
16 | | -require_once dirname( __FILE__ ) . '/../UserMailer.php'; |
17 | | - |
18 | 16 | class EmaillingJob extends Job { |
19 | 17 | function __construct( $title, $params, $id = 0 ) { |
20 | 18 | parent::__construct( 'sendMail', Title::newMainPage(), $params, $id ); |
21 | 19 | } |
22 | 20 | |
23 | 21 | function run() { |
24 | | - userMailer( |
| 22 | + UserMailer::send( |
25 | 23 | $this->params['to'], |
26 | 24 | $this->params['from'], |
27 | 25 | $this->params['subj'], |