Changeset 801569
- Timestamp:
- 11/09/2013 01:59:47 PM (12 years ago)
- Location:
- contact-form-7-datepicker/trunk/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
contact-form-7-datepicker/trunk/modules/date.php
r763278 r801569 75 75 $dpOptions['minDate'] = $tag->get_option('min-date', '', true); 76 76 $dpOptions['maxDate'] = $tag->get_option('max-date', '', true); 77 $dpOptions['firstDay'] = $tag->get_option('first-day', 'int', true);77 $dpOptions['firstDay'] = (int)$tag->get_option('first-day', 'int', true); 78 78 $dpOptions['showAnim'] = $tag->get_option('animate', '', true); 79 79 $dpOptions['yearRange'] = str_replace('-', ':', $tag->get_option('year-range', '', true)); 80 $dpOptions['numberOfMonths'] = $tag->get_option('months', 'int', true);80 $dpOptions['numberOfMonths'] = (int)$tag->get_option('months', 'int', true); 81 81 82 82 $dpOptions['showButtonPanel'] = $tag->has_option('buttons'); -
contact-form-7-datepicker/trunk/modules/datetime.php
r801559 r801569 68 68 $dpOptions['minDate'] = $tag->get_option('min-date', '', true); 69 69 $dpOptions['maxDate'] = $tag->get_option('max-date', '', true); 70 $dpOptions['firstDay'] = $tag->get_option('first-day', 'int', true);70 $dpOptions['firstDay'] = (int)$tag->get_option('first-day', 'int', true); 71 71 $dpOptions['showAnim'] = $tag->get_option('animate', '', true); 72 72 $dpOptions['yearRange'] = str_replace('-', ':', $tag->get_option('year-range', '', true)); … … 81 81 foreach (array('minute', 'hour', 'second') as $s) { 82 82 foreach (array('min', 'max') as $m) { 83 $dpOptions[$s . ucfirst($m)] = $tag->get_option("$m-$s", '', true);83 $dpOptions[$s . ucfirst($m)] = (int)$tag->get_option("$m-$s", 'int', true); 84 84 } 85 85 86 $dpOptions['step' . ucfirst($s)] = $tag->get_option("step-$s", '', true);86 $dpOptions['step' . ucfirst($s)] = (int)$tag->get_option("step-$s", 'int', true); 87 87 } 88 88 -
contact-form-7-datepicker/trunk/modules/time.php
r801559 r801569 66 66 $dpOptions = array(); 67 67 $dpOptions['timeFormat'] = str_replace('_', ' ', $tag->get_option('time-format', '', true)); 68 $dpOptions['firstDay'] = $tag->get_option('first-day', 'int', true);68 $dpOptions['firstDay'] = (int)$tag->get_option('first-day', 'int', true); 69 69 $dpOptions['showAnim'] = $tag->get_option('animate', '', true); 70 70 $dpOptions['controlType'] = $tag->get_option('control-type', '', true); … … 76 76 foreach (array('minute', 'hour', 'second') as $s) { 77 77 foreach (array('min', 'max') as $m) { 78 $dpOptions[$s . ucfirst($m)] = $tag->get_option("$m-$s", '', true);78 $dpOptions[$s . ucfirst($m)] = (int)$tag->get_option("$m-$s", 'int', true); 79 79 } 80 80 81 $dpOptions['step' . ucfirst($s)] = $tag->get_option("step-$s", '', true);81 $dpOptions['step' . ucfirst($s)] = (int)$tag->get_option("step-$s", 'int', true); 82 82 } 83 83
Note: See TracChangeset
for help on using the changeset viewer.