|
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 |
cliffchaney Smarty n00b
Joined: 02 Oct 2009 Posts: 3
|
Posted: Fri Oct 02, 2009 10:52 pm Post subject: Problem with register_prefilter & register_postfiler |
|
|
Just loaded svn version 3244.
register_prefilter() and register_postfilter() both generate "Illegal Offset Type" errors.
Upon investigation, it appears that the index needs to change in both.
Both contain same line which reads:
Code: |
$_name = (is_array($function)) ? $function[0] : $function;
|
I believe the 0 should be changed to a 1. Made changes manually and everything works fine.
-C |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sun Oct 04, 2009 6:50 pm Post subject: |
|
|
Your fix does not cover all cases.
The correct fix is part of the latest SVN update. |
|
Back to top |
|
cliffchaney Smarty n00b
Joined: 02 Oct 2009 Posts: 3
|
Posted: Mon Oct 05, 2009 1:35 am Post subject: |
|
|
Thanks. You rock! Will download update shortly. |
|
Back to top |
|
cliffchaney Smarty n00b
Joined: 02 Oct 2009 Posts: 3
|
Posted: Mon Oct 05, 2009 2:36 am Post subject: Awesome. You rock. |
|
|
Thanks. I'll checkout the latest version shortly.
-C |
|
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
|