diff --git a/includes/version.php b/includes/version.php index 4888b86..8d88d28 100755 --- a/includes/version.php +++ b/includes/version.php @@ -16,7 +16,7 @@ if (!defined('IN_COMMON')) -define('KLEEJA_VERSION', '2.4'); +define('KLEEJA_VERSION', '3.0'); define('KLEEJA_DB_VERSION', '9'); diff --git a/plugins/kj_recaptcha/init.php b/plugins/kj_recaptcha/init.php index c82c80b..ff4fd1b 100644 --- a/plugins/kj_recaptcha/init.php +++ b/plugins/kj_recaptcha/init.php @@ -293,18 +293,15 @@ $kleeja_plugin['kj_recaptcha']['functions'] = array( 'kleeja_check_captcha_func' => function($args){ - if(defined('IN_REAL_INDEX') || defined('IN_ADMIN')){ + if(defined('IN_REAL_INDEX')){ $return = isReCaptchaValid(); return compact('return'); } - - - if(!defined('IN_ADMIN')) { + // if(defined('IN_ADMIN')) { $return = true; return compact('return'); - } - + // } }, 'ftpUploader_upload_1st' => function($args){ @@ -463,7 +460,7 @@ if (!function_exists('isReCaptchaValid')) { return false; } - return json_decode($result)->success; + return (bool) json_decode($result)->success; } catch (Exception $e) { return null;