Removal of support for !
| From: | Greg Jones | Date: | Fri, 25 Nov 2005 11:26:33 +0000 |
| Subject: | Removal of support for ! | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13175@lists.php.net to get a copy of this message | ||
Hi,
I'm new to this list, and I'm sure if I searched long enough there'd be something in an old message, but there is no obvious search facility, so forgive me and here goes:
We're using Smarty 2.6.5-dev at the moment, which I know is quite a way behind the current version, but as it's in use in a bigger system, upgrading it was never felt to be particularly important, until now. We've had a user experiencing template-based errors (invalid arguments being passed to a preg_replace in the compiler), so thought upgrading Smarty would be a good place to start, but it seems that the ! (negation) operator, as in {if !$hasOptions} no longer works, and I wondered why this is, as I don't exactly relish the thought of changing all our code.
Perhaps to clarify, it doesn't generate errors about the !, it just evaluates to true.
So in summary, what can anyone suggest as the easiest way to get a site that uses ! quite a lot to work with the latest version of smarty?
thanks
Greg