identify Joomla3 to make extension for both 2.5 and 3.0? - Joomla! Forum - community, help and support
to make extensions both joomla 2.5 , joomla 3.0 i'm looking unique identifier.
something this
but not work if extension, example system-plugin, has defined ds (like seems common fix these days).
is there adviced unique identifier joomla 3?
something this
code: select all
if(!defined('ds')){
//joomla 3
define('ds',directory_separator);
}else{
//joomla 2.5
}
but not work if extension, example system-plugin, has defined ds (like seems common fix these days).
is there adviced unique identifier joomla 3?
code: select all
$version = new jversion;
if($version->release >= "3.0")
{
//joomla 3.0
}
else
{
//joomla 2.5
}
Comments
Post a Comment