Page 1 of 1

getTemplate() Returns Admin Template

Posted: Mon Feb 20, 2012 8:28 am
by SonarEclipse
Hi,

I'm just in the process of updating one of my plugins, and I encountered a problem when updating from Joomla 1.7 to 2.5. When I call the getTemplate() method in JApplication, it now returns the Admin active template. I used to get the active front-end template, regardless of whether the client was on the back-end or or front-end. Can someone tell me what function I need to call to get the active front-end template?

Thanks.