mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
fixes
This commit is contained in:
@@ -16,7 +16,7 @@ if (!defined('IN_COMMON'))
|
||||
|
||||
|
||||
|
||||
define('KLEEJA_VERSION', '2.4');
|
||||
define('KLEEJA_VERSION', '3.0');
|
||||
|
||||
define('KLEEJA_DB_VERSION', '9');
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user