Index: trunk/extensions/Contest/Contest.i18n.php |
— | — | @@ -82,6 +82,7 @@ |
83 | 83 | 'contest-edit-intro' => 'Introduction page', |
84 | 84 | 'contest-edit-oppertunities' => 'Oppertunities page', |
85 | 85 | 'contest-edit-rulespage' => 'Rules page', |
| 86 | + 'contest-edit-help' => 'Help page', |
86 | 87 | 'contest-edit-exists-already' => 'Note: you are editing an already existing contest, not creating a new one.', |
87 | 88 | 'contest-edit-submit' => 'Submit', |
88 | 89 | |
Index: trunk/extensions/Contest/specials/SpecialContest.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | if ( $pager->getNumRows() ) { |
128 | 128 | $out->addHTML( |
129 | 129 | $pager->getNavigationBar() . |
130 | | - $pager->getBody(). |
| 130 | + $pager->getBody() . |
131 | 131 | $pager->getNavigationBar() |
132 | 132 | ); |
133 | 133 | } |
— | — | @@ -135,4 +135,4 @@ |
136 | 136 | } |
137 | 137 | } |
138 | 138 | |
139 | | -} |
\ No newline at end of file |
| 139 | +} |
Index: trunk/extensions/Contest/specials/SpecialEditContest.php |
— | — | @@ -190,6 +190,11 @@ |
191 | 191 | 'label-message' => 'contest-edit-rulespage', |
192 | 192 | ); |
193 | 193 | |
| 194 | + $fields['help'] = array ( |
| 195 | + 'type' => 'text', |
| 196 | + 'label-message' => 'contest-edit-help', |
| 197 | + ); |
| 198 | + |
194 | 199 | if ( $contest !== false ) { |
195 | 200 | foreach ( $fields as $name => $data ) { |
196 | 201 | $fields[$name]['default'] = $contest->getField( $name ); |
Index: trunk/extensions/Contest/includes/Contest.class.php |
— | — | @@ -382,6 +382,8 @@ |
383 | 383 | && $this->hasField( $name ) && $this->getField( $name ) != self::STATUS_FINISHED ) { |
384 | 384 | $this->wasSetToFinished = true; |
385 | 385 | } |
| 386 | + |
| 387 | + parent::setField( $name, $value ); |
386 | 388 | } |
387 | 389 | |
388 | 390 | /** |