Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -27,6 +27,22 @@ class _Captcha extends FormAbstract
|
||||
*/
|
||||
protected $captcha = NULL;
|
||||
|
||||
/**
|
||||
* Does the configured CAPTCHA service support being added in a modal?
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function supportsModal()
|
||||
{
|
||||
if ( \IPS\Settings::i()->bot_antispam_type === 'none' )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
$class = '\IPS\Helpers\Form\Captcha\\' . mb_ucfirst( \IPS\Settings::i()->bot_antispam_type );
|
||||
return ( !isset( $class::$supportsModal ) or $class::$supportsModal ); // isset() check is for backwards compatibility
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user