mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes
This commit is contained in:
@@ -335,10 +335,13 @@ switch ($case):
|
|||||||
//'plugin_kleeja_version_min' => '1.8',
|
//'plugin_kleeja_version_min' => '1.8',
|
||||||
// Max version of Kleeja that's required to run this plugin
|
// Max version of Kleeja that's required to run this plugin
|
||||||
//'plugin_kleeja_version_max' => '3.8',
|
//'plugin_kleeja_version_max' => '3.8',
|
||||||
|
//3.1.0 < 3.1.0
|
||||||
|
|
||||||
if (version_compare(KLEEJA_VERSION, $plugin_info['plugin_kleeja_version_min'], '<'))
|
if (! empty($plugin_info['plugin_kleeja_version_min']))
|
||||||
{
|
{
|
||||||
kleeja_admin_info(
|
if (version_compare(KLEEJA_VERSION, $plugin_info['plugin_kleeja_version_min'], '<'))
|
||||||
|
{
|
||||||
|
kleeja_admin_info(
|
||||||
$lang['PACKAGE_N_CMPT_KLJ'] . '<br>k:' . KLEEJA_VERSION . '|<|p.min:' . $plugin_info['plugin_kleeja_version_min'],
|
$lang['PACKAGE_N_CMPT_KLJ'] . '<br>k:' . KLEEJA_VERSION . '|<|p.min:' . $plugin_info['plugin_kleeja_version_min'],
|
||||||
true,
|
true,
|
||||||
'',
|
'',
|
||||||
@@ -346,10 +349,11 @@ switch ($case):
|
|||||||
ADMIN_PATH . '?cp=' . basename(__FILE__, '.php')
|
ADMIN_PATH . '?cp=' . basename(__FILE__, '.php')
|
||||||
);
|
);
|
||||||
|
|
||||||
exit;
|
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'], '>'))
|
if (version_compare(KLEEJA_VERSION, $plugin_info['plugin_kleeja_version_max'], '>'))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user