Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -101,6 +101,9 @@ |
102 | 102 | $wgAPIListModules['contestcomments'] = 'ApiQueryContestComments'; |
103 | 103 | $wgAPIListModules['contests'] = 'ApiQueryContests'; |
104 | 104 | |
| 105 | +// Jobs |
| 106 | +$wgJobClasses['ContestReminderJob'] = 'ContestReminderJob'; |
| 107 | + |
105 | 108 | // Hooks |
106 | 109 | $wgHooks['LoadExtensionSchemaUpdates'][] = 'ContestHooks::onSchemaUpdate'; |
107 | 110 | $wgHooks['UnitTestsList'][] = 'ContestHooks::registerUnitTests'; |
Index: trunk/extensions/Contest/includes/ContestReminderJob.php |
— | — | @@ -22,8 +22,8 @@ |
23 | 23 | * * contest, Contest, required |
24 | 24 | */ |
25 | 25 | public function __construct( Title $title, array $params ) { |
26 | | - parent::__construct( 'ContestReminderJob', $title, $params ); |
27 | | - $this->params['emailText'] = ContestUtils::getParsedArticleContent( $this->params['reminder_email'] ); |
| 26 | + parent::__construct( __CLASS__, $title, $params ); |
| 27 | + $this->params['emailText'] = ContestUtils::getParsedArticleContent( $this->params['contest']->getField( 'reminder_email' ) ); |
28 | 28 | $this->params['daysLeft'] = $this->params['contest']->getDaysLeft(); |
29 | 29 | } |
30 | 30 | |