mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
- fix spelling e3eda8a5f5 (commitcomment-21803095)
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
===== 3.1.32 - dev ===
|
===== 3.1.32 - dev ===
|
||||||
|
24.4.2017
|
||||||
|
- fix spelling https://github.com/smarty-php/smarty/commit/e3eda8a5f5653d8abb960eb1bc47e3eca679b1b4#commitcomment-21803095
|
||||||
|
|
||||||
17.4.2017
|
17.4.2017
|
||||||
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
|
- correct generated code on empty() and isset() call, observe change PHP behaviour since PHP 5.5
|
||||||
https://github.com/smarty-php/smarty/issues/347
|
https://github.com/smarty-php/smarty/issues/347
|
||||||
|
@@ -807,7 +807,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
|||||||
$parHasFuction = strpos($par, '(') !== false;
|
$parHasFuction = strpos($par, '(') !== false;
|
||||||
if ($func_name === 'isset') {
|
if ($func_name === 'isset') {
|
||||||
if (count($parameter) === 0) {
|
if (count($parameter) === 0) {
|
||||||
$this->trigger_template_error('Illegal number of paramer in "isset()"');
|
$this->trigger_template_error('Illegal number of parameter in "isset()"');
|
||||||
}
|
}
|
||||||
if ($parHasFuction) {
|
if ($parHasFuction) {
|
||||||
$pa = array();
|
$pa = array();
|
||||||
@@ -826,7 +826,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
|
|||||||
'prev',
|
'prev',
|
||||||
'next'))) {
|
'next'))) {
|
||||||
if (count($parameter) !== 1) {
|
if (count($parameter) !== 1) {
|
||||||
$this->trigger_template_error("Illegal number of paramer in '{$func_name()}'");
|
$this->trigger_template_error("Illegal number of parameter in '{$func_name()}'");
|
||||||
}
|
}
|
||||||
if ($func_name === 'empty') {
|
if ($func_name === 'empty') {
|
||||||
if ($parHasFuction && version_compare(PHP_VERSION, '5.5.0', '<')) {
|
if ($parHasFuction && version_compare(PHP_VERSION, '5.5.0', '<')) {
|
||||||
|
Reference in New Issue
Block a user