r100070 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100069‎ | r100070 | r100071 >
Date:19:31, 17 October 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
Follow up to r99958;
Modified paths:
  • /trunk/extensions/Contest/includes/Contest.class.php (modified) (history)
  • /trunk/extensions/Contest/specials/SpecialEditContest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Contest/specials/SpecialEditContest.php
@@ -174,7 +174,7 @@
175175 $fields['status'] = array (
176176 'type' => 'radio',
177177 'label-message' => 'contest-edit-status',
178 - 'options' => Contest::getStatusMessages( $onlySettable = true )
 178+ 'options' => Contest::getStatusMessages( true )
179179 );
180180
181181 $fields['intro'] = array (
Index: trunk/extensions/Contest/includes/Contest.class.php
@@ -189,7 +189,11 @@
190190 wfMsg( 'contest-status-finished' ) => self::STATUS_FINISHED,
191191 );
192192 }
193 - if (!$onlySettable) $map[wfMsg( 'contest-status-expired')] = self::STATUS_EXPIRED;
 193+
 194+ if ( !$onlySettable ) {
 195+ $map[wfMsg( 'contest-status-expired')] = self::STATUS_EXPIRED;
 196+ }
 197+
194198 return $map;
195199 }
196200

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r99958* Actually implement contest expiry. When a contest is active...erik17:47, 16 October 2011

Status & tagging log