Index: trunk/extensions/SemanticFormsInputs/SFI_Inputs.php |
— | — | @@ -1161,6 +1161,8 @@ |
1162 | 1162 | if ( array_key_exists( 'mintime', $other_args ) |
1163 | 1163 | && ( preg_match( '/^\d+:\d\d$/', trim( $other_args['mintime'] ) ) == 1 ) ) { |
1164 | 1164 | $minTime = trim( $other_args[ 'mintime' ] ); |
| 1165 | + } elseif ( $sfigSettings->timePickerMinTime != null ) { |
| 1166 | + $minTime = $sfigSettings->timePickerMinTime ; |
1165 | 1167 | } else { |
1166 | 1168 | $minTime = '00:00'; |
1167 | 1169 | } |
— | — | @@ -1169,6 +1171,8 @@ |
1170 | 1172 | if ( array_key_exists( 'maxtime', $other_args ) |
1171 | 1173 | && ( preg_match( '/^\d+:\d\d$/', trim( $other_args['maxtime'] ) ) == 1 ) ) { |
1172 | 1174 | $maxTime = trim( $other_args[ 'maxtime' ] ); |
| 1175 | + } elseif ( $sfigSettings->timePickerMaxTime != null ) { |
| 1176 | + $maxTime = $sfigSettings->timePickerMaxTime ; |
1173 | 1177 | } else { |
1174 | 1178 | $maxTime = '23:59'; |
1175 | 1179 | } |