|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Feb 15, 2016 11:11 pm Post subject: Is there a real need for unregisterFilter? |
|
|
The current implementation of Smarty::registerFilter() actively forbid Closures. But judging from the code, it is only arranged that way to allow filters to be unregistered later.
But there's no way to SEE, which filters are registered, as far as I can tell. So, back to my original question - is the Smarty::unregisterFilter() necessary? If not, lots of code can be dumped and things can be made much simpler to read. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|