Index: trunk/extensions/Contest/specials/SpecialContest.php |
— | — | @@ -53,12 +53,12 @@ |
54 | 54 | } |
55 | 55 | else { |
56 | 56 | $out->setPageTitle( wfMsgExt( 'contest-contest-title', 'parseinline', $contest->getField( 'name' ) ) ); |
57 | | - |
| 57 | + |
58 | 58 | $this->displayNavigation(); |
59 | 59 | $this->showGeneralInfo( $contest ); |
60 | 60 | $this->showMailFunctionality( $contest ); |
61 | 61 | $this->showContestants( $contest, $challengeTitle ); |
62 | | - |
| 62 | + |
63 | 63 | $out->addModules( 'contest.special.contest' ); |
64 | 64 | } |
65 | 65 | } |
— | — | @@ -111,31 +111,31 @@ |
112 | 112 | $stats['name'] = $contest->getField( 'name' ); |
113 | 113 | $stats['status'] = Contest::getStatusMessage( $contest->getStatus() ); |
114 | 114 | $stats['submissioncount'] = $this->getLang()->formatNum( $contest->getField( 'submission_count' ) ); |
115 | | - |
| 115 | + |
116 | 116 | $stats['end'] = wfMsgExt( |
117 | 117 | $contest->getDaysLeft() < 0 ? 'contest-contest-days-ago' : 'contest-contest-days-left', |
118 | 118 | 'parsemag', |
119 | 119 | $this->getLang()->timeanddate( $contest->getField( 'end' ), true ), |
120 | 120 | $this->getLang()->formatNum( abs( $contest->getDaysLeft() ) ) |
121 | 121 | ); |
122 | | - |
| 122 | + |
123 | 123 | return $stats; |
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | | - * |
128 | | - * |
| 127 | + * |
| 128 | + * |
129 | 129 | * @since 0.1 |
130 | | - * |
| 130 | + * |
131 | 131 | * @param Contest $contest |
132 | 132 | */ |
133 | 133 | protected function showMailFunctionality( Contest $contest ) { |
134 | 134 | $out = $this->getOutput(); |
135 | 135 | |
136 | 136 | $out->addHTML( Html::element( 'h3', array(), wfMsg( 'contest-contest-reminder-mail' ) ) ); |
137 | | - |
| 137 | + |
138 | 138 | $out->addWikiMsg( 'contest-contest-reminder-page', $contest->getField( 'reminder_email' ) ); |
139 | | - |
| 139 | + |
140 | 140 | $out->addHTML( Html::element( |
141 | 141 | 'button', |
142 | 142 | array( |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | ), |
147 | 147 | wfMsg( 'contest-contest-send-reminder' ) |
148 | 148 | ) ); |
149 | | - |
| 149 | + |
150 | 150 | $out->addHTML( Html::rawElement( |
151 | 151 | 'div', |
152 | 152 | array( |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | ContestUtils::getParsedArticleContent( $contest->getField( 'reminder_email' ) ) |
157 | 157 | ) ); |
158 | 158 | } |
159 | | - |
| 159 | + |
160 | 160 | /** |
161 | 161 | * Show a paged list of the contestants foe this contest. |
162 | 162 | * |
Index: trunk/extensions/Contest/includes/Contest.class.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | */ |
140 | 140 | public function getDefaults() { |
141 | 141 | $defaultPage = 'MediaWiki:Contests/'; |
142 | | - |
| 142 | + |
143 | 143 | return array( |
144 | 144 | 'name' => '', |
145 | 145 | 'status' => self::STATUS_DRAFT, |