Index: trunk/extensions/Contest/Contest.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | # Users that can be contest participants. |
128 | 128 | $wgGroupPermissions['*' ]['contestparticipant'] = false; |
129 | 129 | $wgGroupPermissions['user' ]['contestparticipant'] = true; |
130 | | -$wgGroupPermissions['autoconfirmed']['contestparticipant'] = true; |
| 130 | +//$wgGroupPermissions['autoconfirmed']['contestparticipant'] = true; |
131 | 131 | //$wgGroupPermissions['bot' ]['contestparticipant'] = false; |
132 | 132 | $wgGroupPermissions['sysop' ]['contestparticipant'] = true; |
133 | 133 | $wgGroupPermissions['contestparticipant']['contestparticipant'] = true; |
Index: trunk/extensions/Contest/includes/ContestantPager.php |
— | — | @@ -139,6 +139,10 @@ |
140 | 140 | return $headers; |
141 | 141 | } |
142 | 142 | |
| 143 | + /** |
| 144 | + * @param $row |
| 145 | + * @return string |
| 146 | + */ |
143 | 147 | function formatRow( $row ) { |
144 | 148 | $this->mCurrentRow = $row; # In case formatValue etc need to know |
145 | 149 | $s = Xml::openElement( 'tr', $this->getRowAttrs($row) ); |
— | — | @@ -157,6 +161,10 @@ |
158 | 162 | return $s; |
159 | 163 | } |
160 | 164 | |
| 165 | + /** |
| 166 | + * @param $row |
| 167 | + * @return array |
| 168 | + */ |
161 | 169 | function getRowAttrs( $row ) { |
162 | 170 | return array_merge( |
163 | 171 | parent::getRowAttrs( $row ), |
— | — | @@ -164,10 +172,19 @@ |
165 | 173 | ); |
166 | 174 | } |
167 | 175 | |
| 176 | + /** |
| 177 | + * @param $row |
| 178 | + * @return string |
| 179 | + */ |
168 | 180 | function getRowClass( $row ) { |
169 | 181 | return 'contestant-row'; |
170 | 182 | } |
171 | 183 | |
| 184 | + /** |
| 185 | + * @param $name |
| 186 | + * @param $value |
| 187 | + * @return string |
| 188 | + */ |
172 | 189 | public function formatValue( $name, $value ) { |
173 | 190 | switch ( $name ) { |
174 | 191 | case 'contestant_id': |