getTemplate() Returns Admin Template

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
SonarEclipse
Joomla! Intern
Joomla! Intern
Posts: 51
Joined: Thu Jul 07, 2011 9:00 pm

getTemplate() Returns Admin Template

Post by SonarEclipse » Mon Feb 20, 2012 8:28 am

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.

Locked

Return to “Templates for Joomla! 2.5”