r83477 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83476‎ | r83477 | r83478 >
Date:19:13, 7 March 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
fix bug 27908 ($sfigSettings->timePicker[Min|Max]Time does not work)
Modified paths:
  • /trunk/extensions/SemanticFormsInputs/SFI_Inputs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticFormsInputs/SFI_Inputs.php
@@ -1161,6 +1161,8 @@
11621162 if ( array_key_exists( 'mintime', $other_args )
11631163 && ( preg_match( '/^\d+:\d\d$/', trim( $other_args['mintime'] ) ) == 1 ) ) {
11641164 $minTime = trim( $other_args[ 'mintime' ] );
 1165+ } elseif ( $sfigSettings->timePickerMinTime != null ) {
 1166+ $minTime = $sfigSettings->timePickerMinTime ;
11651167 } else {
11661168 $minTime = '00:00';
11671169 }
@@ -1169,6 +1171,8 @@
11701172 if ( array_key_exists( 'maxtime', $other_args )
11711173 && ( preg_match( '/^\d+:\d\d$/', trim( $other_args['maxtime'] ) ) == 1 ) ) {
11721174 $maxTime = trim( $other_args[ 'maxtime' ] );
 1175+ } elseif ( $sfigSettings->timePickerMaxTime != null ) {
 1176+ $maxTime = $sfigSettings->timePickerMaxTime ;
11731177 } else {
11741178 $maxTime = '23:59';
11751179 }