1
votes

I'm making a simple Joomla plugin that loads a CSS file, but I want to load a different file for Joomla 2.5 and 3.2, using a PHP if-else statement. Is it possible to determine the Joomla version of the site using PHP?

1

1 Answers

1
votes

You can use the named constant JVERSION or if you need more functions use the JVersion object like:

$j = new JVersion()
echo $j->getLongVersion();
echo $j->$RELEASE;