mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
Smarty5 syntax fix
This commit is contained in:
@@ -196,7 +196,7 @@ function smarty_function_html_select_date($params, Smarty_Internal_Template $tem
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// no date found, use NOW
|
// no date found, use NOW
|
||||||
[$_year, $_month, $_day] = explode('-', date('Y-m-d'));
|
list($_year, $_month, $_day) = explode('-', date('Y-m-d'));
|
||||||
}
|
}
|
||||||
} elseif (isset($time) && preg_match("/(\d*)-(\d*)-(\d*)/", $time, $matches)) {
|
} elseif (isset($time) && preg_match("/(\d*)-(\d*)-(\d*)/", $time, $matches)) {
|
||||||
$_year = $_month = $_day = null;
|
$_year = $_month = $_day = null;
|
||||||
@@ -207,7 +207,7 @@ function smarty_function_html_select_date($params, Smarty_Internal_Template $tem
|
|||||||
if (array_key_exists('time', $params)) {
|
if (array_key_exists('time', $params)) {
|
||||||
$_year = $_month = $_day = null;
|
$_year = $_month = $_day = null;
|
||||||
} else {
|
} else {
|
||||||
[$_year, $_month, $_day] = explode('-', date('Y-m-d'));
|
list($_year, $_month, $_day) = explode('-', date('Y-m-d'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$template->_checkPlugins(
|
$template->_checkPlugins(
|
||||||
|
Reference in New Issue
Block a user