Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -156,6 +156,7 @@ |
157 | 157 | 'contest-contestant-header-rating' => 'Rating', |
158 | 158 | 'contest-contestant-header-comments' => 'Amount of comments', |
159 | 159 | 'contest-contestant-submission-url' => 'Submission', |
| 160 | + 'contest-contestant-notsubmitted' => 'Not submitted yet', |
160 | 161 | ); |
161 | 162 | |
162 | 163 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Contest/specials/SpecialContestant.php |
— | — | @@ -105,11 +105,16 @@ |
106 | 106 | $stats['id'] = htmlspecialchars( $contestant->getField( 'id' ) ); |
107 | 107 | $stats['contest'] = htmlspecialchars( $contestant->getContest()->getField( 'name' ) ); |
108 | 108 | |
109 | | - $stats['submission'] = '<b>' . Html::element( |
110 | | - 'a', |
111 | | - array( 'href' => $contestant->getField( 'submission' ) ), |
112 | | - wfMsg( 'contest-contestant-submission-url' ) |
113 | | - ) . '</b>'; |
| 109 | + if ( $contestant->getField( 'submission' ) === '' ) { |
| 110 | + $stats['submission'] = wfMsg( 'contest-contestant-notsubmitted' ); |
| 111 | + } |
| 112 | + else { |
| 113 | + $stats['submission'] = '<b>' . Html::element( |
| 114 | + 'a', |
| 115 | + array( 'href' => $contestant->getField( 'submission' ) ), |
| 116 | + wfMsg( 'contest-contestant-submission-url' ) |
| 117 | + ) . '</b>'; |
| 118 | + } |
114 | 119 | |
115 | 120 | $countries = ContestContestant::getCountries(); |
116 | 121 | $stats['country'] = htmlspecialchars( $countries[$contestant->getField( 'country' )] ); |