Route is called twice with showtemplate=false ?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Route is called twice with showtemplate=false ?

Post by calguy1000 »

This bug is fixed for CMSMS 1.11.5.

In the mean time, you could use a static boolean to make sure that your code isn't executed twice per request.

i.e:

Code: Select all

static $flag = FALSE;
if( $flag == FALSE ) { 
   // do stuff
   $flag = TRUE;
}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Re: Route is called twice with showtemplate=false ?

Post by atz6975 »

Hi I jump on the wagon....
I use Goran's post to use CGFeedback and Jquery.
Where shall I put the static trick?
re-re-edit : I'm not sure if I understand where to put it by myself....

Thanks for your help.
atz6975
Forum Members
Forum Members
Posts: 34
Joined: Thu Jan 14, 2010 4:43 pm

Re: Route is called twice with showtemplate=false ?

Post by atz6975 »

Fixed and tested with 1.11.5.
Thanks.
Post Reply

Return to “Developers Discussion”