This commit is contained in:
Abdulrahman
2019-05-25 02:51:09 +03:00
parent 5e794c62dd
commit b5f334fdbd

View File

@@ -335,7 +335,10 @@ switch ($case):
//'plugin_kleeja_version_min' => '1.8',
// Max version of Kleeja that's required to run this plugin
//'plugin_kleeja_version_max' => '3.8',
//3.1.0 < 3.1.0
if (! empty($plugin_info['plugin_kleeja_version_min']))
{
if (version_compare(KLEEJA_VERSION, $plugin_info['plugin_kleeja_version_min'], '<'))
{
kleeja_admin_info(
@@ -348,8 +351,9 @@ switch ($case):
exit;
}
}
if ($plugin_info['plugin_kleeja_version_max'] != '0')
if (! empty($plugin_info['plugin_kleeja_version_max']))
{
if (version_compare(KLEEJA_VERSION, $plugin_info['plugin_kleeja_version_max'], '>'))
{