Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -43,7 +43,7 @@ class _Captcha extends FormAbstract
|
||||
|
||||
if ( \IPS\Settings::i()->bot_antispam_type != 'none' )
|
||||
{
|
||||
$class = '\IPS\Helpers\Form\Captcha\\' . ucfirst( \IPS\Settings::i()->bot_antispam_type );
|
||||
$class = '\IPS\Helpers\Form\Captcha\\' . mb_ucfirst( \IPS\Settings::i()->bot_antispam_type );
|
||||
if ( !class_exists( $class ) )
|
||||
{
|
||||
\IPS\Output::i()->error( 'unexpected_captcha', '4S262/1', 500, 'unexpected_captcha_admin' );
|
||||
@@ -83,6 +83,20 @@ class _Captcha extends FormAbstract
|
||||
return $this->captcha->getHtml();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get HTML
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function rowHtml( $form=NULL )
|
||||
{
|
||||
if ( $this->captcha === NULL )
|
||||
{
|
||||
return '';
|
||||
}
|
||||
return ( method_exists( $this->captcha, 'rowHtml' ) and !$this->error ) ? $this->captcha->rowHtml() : parent::rowHtml( $form );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Value
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user