PDA

View Full Version : $template_hook and Postbit Fix 3.6.7 PL1


Shawn
07-18-2007, 01:30 AM
In version 3.6.7 on line 262 of file class_postbit.php a global for '$template_hook'.

This now causes a big problem.

This is how I see to use template hook. Anyone who wants to add something, can make something like this:


eval('$template_hook[postbit_controls] .= " ' . fetch_template('hacks_template_name') . '";');


Notice the '.='.

This gives the option for all codes to use the same template hook.

When $template_hook did not have the global in postbit, then every postbit got it's own set of template hooks. If I would add info to one post, it would not get added to the next.

Now that you added the global for $template_hook, if I add info into one post, then it will be in the next post as well. And if I add more info then, so it will have double info, then triple info, and so on.

Shawn
07-18-2007, 01:33 AM
This error has been reported by Abe