Index: trunk/extensions/Contest/includes/ContestReminderJob.php |
— | — | @@ -33,6 +33,9 @@ |
34 | 34 | * @return bool |
35 | 35 | */ |
36 | 36 | public function run() { |
| 37 | + /** |
| 38 | + * @var $contestant ContestContestant |
| 39 | + */ |
37 | 40 | foreach ( $this->params['contestants'] as /* ContestContestant */ $contestant ) { |
38 | 41 | $contestant->sendReminderEmail( $this->params['emailText'], array( |
39 | 42 | 'daysLeft' => $this->params['daysLeft'], |
Index: trunk/extensions/Contest/api/ApiMailContestants.php |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | $conditions['id'] = $params['ids']; |
72 | 72 | } |
73 | 73 | |
74 | | - $contestants = ContestContestant::s()->select( array( 'contest_id', 'email' ), $conditions ); |
| 74 | + $contestants = ContestContestant::s()->select( array( 'id', 'user_id', 'contest_id', 'email' ), $conditions ); |
75 | 75 | |
76 | 76 | if ( $contestants !== false && count( $contestants ) > 0 ) { |
77 | 77 | $setSize = ContestSettings::get( 'reminderJobSize' ); |
— | — | @@ -169,7 +169,7 @@ |
170 | 170 | public function getDescription() { |
171 | 171 | return array( |
172 | 172 | 'API module for mailing contestants. Selection criteria will be joined with AND, |
173 | | - except for the challange ids/titles and contest ids/names pairs, which will be joined wit OR.' |
| 173 | + except for the challange ids/titles and contest ids/names pairs, which will be joined with OR.' |
174 | 174 | ); |
175 | 175 | } |
176 | 176 | |
— | — | @@ -184,7 +184,7 @@ |
185 | 185 | 'api.php?action=mailcontestants&ids=42', |
186 | 186 | 'api.php?action=mailcontestants&ids=4|2', |
187 | 187 | 'api.php?action=mailcontestants&contestids=42', |
188 | | - 'api.php?action=mailcontestants&contestnames=Weekend of Code', |
| 188 | + 'api.php?action=mailcontestants&contestnames=Weekend_of_Code', |
189 | 189 | 'api.php?action=mailcontestants&challengetitles=foo|bar|baz', |
190 | 190 | ); |
191 | 191 | } |