mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
This commit is contained in:
@@ -1,16 +1,19 @@
|
|||||||
===== trunk =====
|
===== trunk =====
|
||||||
|
13.09.2013
|
||||||
|
- bugfix html_select_time defaulting error for the Meridian dropdown (forum topic 24549)
|
||||||
|
|
||||||
09.09.2012
|
09.09.2012
|
||||||
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542}
|
- bugfix incorrect compiled code with array(object,method) callback at registered Variable Filter (forum topic 24542)
|
||||||
|
|
||||||
27.08.2013
|
27.08.2013
|
||||||
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518}
|
- bugfix delimiter followed by linebreak did not work as auto literal after update from 24.08.2013 (forum topic 24518)
|
||||||
|
|
||||||
24.08.2013
|
24.08.2013
|
||||||
- bugfix and enhancement
|
- bugfix and enhancement
|
||||||
Because several recent problems with template inheritance the {block} tag compiler has been rewriten
|
Because several recent problems with template inheritance the {block} tag compiler has been rewriten
|
||||||
- Error messages shown now the correct child template file and line number
|
- Error messages shown now the correct child template file and line number
|
||||||
- The compiler could fail on some larger UTF-8 text block (forum topic 24455}
|
- The compiler could fail on some larger UTF-8 text block (forum topic 24455)
|
||||||
- The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289}
|
- The {strip} tag can now be placed outside {block} tags in child templates (forum topic 24289)
|
||||||
- change SmartyException::$escape is now false by default
|
- change SmartyException::$escape is now false by default
|
||||||
- change PHP traceback has been remove for SmartyException and SmartyCompilerException
|
- change PHP traceback has been remove for SmartyException and SmartyCompilerException
|
||||||
|
|
||||||
|
@@ -345,7 +345,7 @@ function smarty_function_html_select_time($params, $template)
|
|||||||
$_html_meridian .= '<option value="">' . ( isset($meridian_empty) ? $meridian_empty : $all_empty ) . '</option>' . $option_separator;
|
$_html_meridian .= '<option value="">' . ( isset($meridian_empty) ? $meridian_empty : $all_empty ) . '</option>' . $option_separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
$_html_meridian .= '<option value="am"'. ($_hour < 12 ? ' selected="selected"' : '') .'>AM</option>' . $option_separator
|
$_html_meridian .= '<option value="am"'. ($_hour > 0 && $_hour < 12 ? ' selected="selected"' : '') .'>AM</option>' . $option_separator
|
||||||
. '<option value="pm"'. ($_hour < 12 ? '' : ' selected="selected"') .'>PM</option>' . $option_separator
|
. '<option value="pm"'. ($_hour < 12 ? '' : ' selected="selected"') .'>PM</option>' . $option_separator
|
||||||
. '</select>';
|
. '</select>';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user