Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -356,6 +356,8 @@ |
357 | 357 | 'contest-mycontests-sessionfail' => 'Session failure', |
358 | 358 | 'contest-submission-challenge' => 'Tells the user which challenge they are part of. $1 is the challenge name', |
359 | 359 | 'contest-submission-challenge-description' => 'Output of challenge name and description. $1 is the challenge name, $2 is the challenge description', |
| 360 | + 'contest-welcome-active-contests' => 'Message shown above a list of contests', |
| 361 | + 'contest-welcome-no-contests-active' => 'Indicates that there arte no active contests', |
360 | 362 | ); |
361 | 363 | |
362 | 364 | /** толышә зывон (толышә зывон) |
Index: trunk/extensions/Contest/specials/SpecialContestWelcome.php |
— | — | @@ -59,6 +59,16 @@ |
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
| 63 | + /** |
| 64 | + * Handle requests for non-existing contests, or requests with no contest specified. |
| 65 | + * If the contest does not exist, an error is shown, unless there is only one existing |
| 66 | + * contest, in which case the user is redirected to it, which also happens when no contest |
| 67 | + * is specified. If there are multiple active contests, a list is shown. |
| 68 | + * |
| 69 | + * @since 0.2 |
| 70 | + * |
| 71 | + * @param string $subPage |
| 72 | + */ |
63 | 73 | protected function showNoSuchContest( $subPage ) { |
64 | 74 | $out = $this->getOutput(); |
65 | 75 | |
Index: trunk/extensions/Contest/RELEASE-NOTES |
— | — | @@ -7,6 +7,7 @@ |
8 | 8 | === Version 0.2 === |
9 | 9 | |
10 | 10 | * Added filter options for the contestant pager on Special:Contest. |
| 11 | +* Added nicer handling of requests of non-existing contests on Special:ContestWelcome. |
11 | 12 | |
12 | 13 | === Version 0.1 === |
13 | 14 | 2011-10-20 |