Index: trunk/extensions/Contest/specials/SpecialContestSignup.php |
— | — | @@ -105,24 +105,23 @@ |
106 | 106 | $this->showError( 'contest-signup-unknown' ); |
107 | 107 | $out->addHTML( '<br /><br /><br /><br />' ); |
108 | 108 | $out->returnToMain(); |
| 109 | + return; |
109 | 110 | } |
110 | | - else { |
111 | | - switch ( $contest->getStatus() ) { |
112 | | - case Contest::STATUS_ACTIVE: |
113 | | - $this->showEnabledPage( $contest, $challengeId ); |
114 | | - break; |
115 | | - case Contest::STATUS_DRAFT: |
116 | | - $this->showWarning( 'contest-signup-draft' ); |
117 | | - $out->addHTML( '<br /><br /><br /><br />' ); |
118 | | - $out->returnToMain(); |
119 | | - break; |
120 | | - case Contest::STATUS_FINISHED: |
121 | | - case Contest::STATUS_EXPIRED: |
122 | | - $this->showWarning( 'contest-signup-finished' ); |
123 | | - $out->addHTML( '<br /><br /><br /><br />' ); |
124 | | - $out->returnToMain(); |
125 | | - break; |
126 | | - } |
| 111 | + switch ( $contest->getStatus() ) { |
| 112 | + case Contest::STATUS_ACTIVE: |
| 113 | + $this->showEnabledPage( $contest, $challengeId ); |
| 114 | + break; |
| 115 | + case Contest::STATUS_DRAFT: |
| 116 | + $this->showWarning( 'contest-signup-draft' ); |
| 117 | + $out->addHTML( '<br /><br /><br /><br />' ); |
| 118 | + $out->returnToMain(); |
| 119 | + break; |
| 120 | + case Contest::STATUS_FINISHED: |
| 121 | + case Contest::STATUS_EXPIRED: |
| 122 | + $this->showWarning( 'contest-signup-finished' ); |
| 123 | + $out->addHTML( '<br /><br /><br /><br />' ); |
| 124 | + $out->returnToMain(); |
| 125 | + break; |
127 | 126 | } |
128 | 127 | } |
129 | 128 | |