mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
return valid reference in get_config_vars() when given var is non-existant
This commit is contained in:
8
NEWS
8
NEWS
@@ -1,3 +1,5 @@
|
|||||||
|
- return valid reference in get_config_vars() when given var is
|
||||||
|
non-existant (Thomas Schulz, boots)
|
||||||
- plugin html_image: fix incorrect secure_dir error when
|
- plugin html_image: fix incorrect secure_dir error when
|
||||||
file doesn't exist (monte)
|
file doesn't exist (monte)
|
||||||
- plugin html_image: add path_prefix param (monte)
|
- plugin html_image: add path_prefix param (monte)
|
||||||
@@ -334,7 +336,7 @@ Version 2.5.0-RC2 (March 26, 2003)
|
|||||||
the "checked" value of html_radios (Monte)
|
the "checked" value of html_radios (Monte)
|
||||||
- fixed errormessage in _compile_smarty_ref() (messju)
|
- fixed errormessage in _compile_smarty_ref() (messju)
|
||||||
- updated docs for html_image "name" -> "file" (messju)
|
- updated docs for html_image "name" -> "file" (messju)
|
||||||
- fixed bug with html_options-optgroups (Nichlas L<EFBFBD>fdahl, messju)
|
- fixed bug with html_options-optgroups (Nichlas Lfdahl, messju)
|
||||||
- cleaned up calls to readdir() (messju)
|
- cleaned up calls to readdir() (messju)
|
||||||
- fixed bug with passing multiple modifiers to a parameter
|
- fixed bug with passing multiple modifiers to a parameter
|
||||||
(Monte)
|
(Monte)
|
||||||
@@ -398,7 +400,7 @@ Version 2.5.0-RC1 (March 5, 2003)
|
|||||||
- fix cache groups with compile_id set (Monte)
|
- fix cache groups with compile_id set (Monte)
|
||||||
- add support for merging appended vars (messju, Monte)
|
- add support for merging appended vars (messju, Monte)
|
||||||
- allow null as function attribute value
|
- allow null as function attribute value
|
||||||
(Andr<EFBFBD> Rabold, Monte)
|
(Andr?abold, Monte)
|
||||||
- support $foo->bar[index] syntax (Monte)
|
- support $foo->bar[index] syntax (Monte)
|
||||||
- add get_registered_object function (messju, Monte)
|
- add get_registered_object function (messju, Monte)
|
||||||
- treat unrecognized param attribute syntax as string (Monte)
|
- treat unrecognized param attribute syntax as string (Monte)
|
||||||
@@ -930,4 +932,4 @@ Version 1.0
|
|||||||
------------
|
------------
|
||||||
- initial release
|
- initial release
|
||||||
|
|
||||||
/* vim: set et tw=64 ft=changelog: */
|
/* vim: set et tw=64 ft=changelog: */
|
@@ -1077,6 +1077,10 @@ class Smarty
|
|||||||
return $this->_config[0]['vars'];
|
return $this->_config[0]['vars'];
|
||||||
} else if(isset($this->_config[0]['vars'][$name])) {
|
} else if(isset($this->_config[0]['vars'][$name])) {
|
||||||
return $this->_config[0]['vars'][$name];
|
return $this->_config[0]['vars'][$name];
|
||||||
|
} else {
|
||||||
|
// var non-existant, return valid reference
|
||||||
|
$_tmp = null;
|
||||||
|
return $_tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user