Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetSimple version
#1
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):

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".
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply




Users browsing this thread: 1 Guest(s)