Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problem with register_prefilter & register_postfiler

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
cliffchaney
Smarty n00b


Joined: 02 Oct 2009
Posts: 3

PostPosted: Fri Oct 02, 2009 10:52 pm    Post subject: Problem with register_prefilter & register_postfiler Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sun Oct 04, 2009 6:50 pm    Post subject: Reply with quote

Your fix does not cover all cases.

The correct fix is part of the latest SVN update.
Back to top
View user's profile Send private message
cliffchaney
Smarty n00b


Joined: 02 Oct 2009
Posts: 3

PostPosted: Mon Oct 05, 2009 1:35 am    Post subject: Reply with quote

Thanks. You rock! Will download update shortly.
Back to top
View user's profile Send private message
cliffchaney
Smarty n00b


Joined: 02 Oct 2009
Posts: 3

PostPosted: Mon Oct 05, 2009 2:36 am    Post subject: Awesome. You rock. Reply with quote

Thanks. I'll checkout the latest version shortly.

-C
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP