2011-04-02, 01:04:22
What is the best method for a plugin to find out, if it's running in GetSimple 3.0 or lower?
Maybe the best way, but you need to define a function (and pollute the name space):
Fast method working only in the front-end:
Fast method in the back-end?
BTW: in Extend I would like to see a version option "2.03 + 3.0".
Maybe the best way, but you need to define a function (and pollute the name space):
Code:
function myplugin_isV3() {
include(GSADMININCPATH.'configuration.php');
return substr(GSVERSION,0,1) == '3';
}
$isV3 = myplugin_isV3();
Fast method working only in the front-end:
Code:
$isV3 = function_exists('get_site_version');
Fast method in the back-end?
BTW: in Extend I would like to see a version option "2.03 + 3.0".