plugin error
| From: | Paul Lockaby | Date: | Wed, 26 Mar 2003 18:33:22 +0000 |
| Subject: | plugin error | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8922@lists.php.net to get a copy of this message | ||
I just downloaded Smarty 2.5.0 RC2 and ran into the following problem. I have security set to true which prohibits PHP functions to be used as modifiers, except those specified in $security_settings. So lemme ask a question about that before I get into my problem. Does that affect modifiers explicitly set in code? For instance, if I declare a modifier explicity like this:
$smarty->register_modifier("strip_tags","strip_tags");
Even though the modifier has the same name as the PHP function, should there be a problem? I would think not. But on the other hand, in my plugins directory I have a file named modifier.date.php that allows me to use the PHP date function in my templates. However, this isn't allowed because I didn't explicity allow it? Is this supposed to happen like that? I wouldn't think it to, since I'm not really using the PHP function, I'm actually using my own modifier, that happens to have the same name as a PHP function... is this a bug?
--
Paul Lockaby
paul@paullockaby.com
http://www.paullockaby.com