Patch?
| From: | Sean Coates | Date: | Tue, 27 Jan 2004 20:56:50 +0000 |
| Subject: | Patch? | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2072@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Smarty dev list,
I'd like to submit a patch. In what format would you like this?
I've attached my
cvs diff -u from an anonymous checkout, today (I
don't think I have the necessary CVS karma for a commit -- plus, I'm new
to smarty-dev, and thought I should run it by the list, anyway).
This patch adds a new config member
$Smarty->graceful_undefined_constants that defaults to TRUE (preserving
backwards-compatibility).
When false, the @ error suppressor is omitted from a
$smarty.const.CONSTANT_HERE construct (in the compiled template).
This works hand-in-hand with the $Smarty->error_reporting member.
Let me know if I did something wrong, or if I plain overlooked an easier
way to do this. Or if I'm just confusing/confused (-:
Thanks,
Sean Coates
sean@php.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAFtCRWppknrQMxQIRArLuAJ9OeAykewP+8PNOD8vkM5QDh3+iFgCfSPnz
g84k1Zd289dcUCzYUbEav1s=
=9ivw
-----END PGP SIGNATURE-----