Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -83,6 +83,8 @@ |
84 | 84 | 'contest-edit-opportunities' => 'Opportunities page', |
85 | 85 | 'contest-edit-rulespage' => 'Rules page', |
86 | 86 | 'contest-edit-help' => 'Help page', |
| 87 | + 'contest-edit-signup' => 'Signup email page', |
| 88 | + 'contest-edit-reminder' => 'Reminder email page', |
87 | 89 | 'contest-edit-exists-already' => 'Note: you are editing an already existing contest, not creating a new one.', |
88 | 90 | 'contest-edit-submit' => 'Submit', |
89 | 91 | |
Index: trunk/extensions/Contest/sql/AddContestEmailFields.sql |
— | — | @@ -3,5 +3,5 @@ |
4 | 4 | ADD COLUMN contest_reminder_email VARCHAR(255) NOT NULL; |
5 | 5 | |
6 | 6 | UPDATE /*_*/contests SET |
7 | | - contest_signup_email = '', |
8 | | - contest_reminder_email = ''; |
\ No newline at end of file |
| 7 | + contest_signup_email = 'MediaWiki:', |
| 8 | + contest_reminder_email = 'MediaWiki:'; |
\ No newline at end of file |
Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -195,6 +195,16 @@ |
196 | 196 | 'label-message' => 'contest-edit-help', |
197 | 197 | ); |
198 | 198 | |
| 199 | + $fields['signup_email'] = array ( |
| 200 | + 'type' => 'text', |
| 201 | + 'label-message' => 'contest-edit-signup', |
| 202 | + ); |
| 203 | + |
| 204 | + $fields['reminder_email'] = array ( |
| 205 | + 'type' => 'text', |
| 206 | + 'label-message' => 'contest-edit-reminder', |
| 207 | + ); |
| 208 | + |
199 | 209 | if ( $contest !== false ) { |
200 | 210 | foreach ( $fields as $name => $data ) { |
201 | 211 | $fields[$name]['default'] = $contest->getField( $name ); |
— | — | @@ -225,7 +235,9 @@ |
226 | 236 | * Process the form. At this point we know that the user passes all the criteria in |
227 | 237 | * userCanExecute(), and if the data array contains 'Username', etc, then Username |
228 | 238 | * resets are allowed. |
229 | | - * @param $data array |
| 239 | + * |
| 240 | + * @param array $data |
| 241 | + * |
230 | 242 | * @return Bool|Array |
231 | 243 | */ |
232 | 244 | public function onSubmit( array $data ) { |