cvs: smarty / NEWS /libs Smarty.class.php
"boots" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsboots1131551199@cvsserver> |
boots Wed Nov 9 10:46:39 2005 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
return valid reference in get_config_vars() when given var is non-existant
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.515&r2=1.516&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.515 smarty/NEWS:1.516
--- smarty/NEWS:1.515 Mon Oct 10 10:41:27 2005
+++ smarty/NEWS Wed Nov 9 10:46:36 2005
@@ -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
file doesn't exist (monte)
- plugin html_image: add path_prefix param (monte)
@@ -334,7 +336,7 @@
the "checked" value of html_radios (Monte)
- fixed errormessage in _compile_smarty_ref() (messju)
- updated docs for html_image "name" -> "file" (messju)
- - fixed bug with html_options-optgroups (Nichlas Löfdahl, messju)
+ - fixed bug with html_options-optgroups (Nichlas Lfdahl, messju)
- cleaned up calls to readdir() (messju)
- fixed bug with passing multiple modifiers to a parameter
(Monte)
@@ -398,7 +400,7 @@
- fix cache groups with compile_id set (Monte)
- add support for merging appended vars (messju, Monte)
- allow null as function attribute value
- (André Rabold, Monte)
+ (Andr?abold, Monte)
- support $foo->bar[index] syntax (Monte)
- add get_registered_object function (messju, Monte)
- treat unrecognized param attribute syntax as string (Monte)
@@ -930,4 +932,4 @@
------------
- initial release
-/* vim: set et tw=64 ft=changelog: */
+/* vim: set et tw=64 ft=changelog: */
\ No newline at end of file
http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.519&r2=1.520&ty=u
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.519 smarty/libs/Smarty.class.php:1.520
--- smarty/libs/Smarty.class.php:1.519 Wed Aug 17 10:59:25 2005
+++ smarty/libs/Smarty.class.php Wed Nov 9 10:46:37 2005
@@ -30,7 +30,7 @@
* @version 2.6.11-dev
*/
-/* $Id: Smarty.class.php,v 1.519 2005/08/17 14:59:25 mohrt Exp $ */
+/* $Id: Smarty.class.php,v 1.520 2005/11/09 15:46:37 boots Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -1077,6 +1077,10 @@
return $this->_config[0]['vars'];
} else if(isset($this->_config[0]['vars'][$name])) {
return $this->_config[0]['vars'][$name];
+ } else {
+ // var non-existant, return valid reference
+ $_tmp = null;
+ return $_tmp;
}
}
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php