Fix __construct see #8486

pull/2487/head
jmontoyaa 9 years ago
parent e4505a6009
commit e6f7112818
  1. 15
      main/inc/lib/pear/HTML/QuickForm/CAPTCHA.php
  2. 15
      main/inc/lib/pear/HTML/QuickForm/CAPTCHA/Image.php

@ -83,9 +83,9 @@ class HTML_QuickForm_CAPTCHA extends HTML_QuickForm_input
* @access protected
*/
var $_options = array(
'sessionVar' => '_HTML_QuickForm_CAPTCHA',
'phrase' => null,
);
'sessionVar' => '_HTML_QuickForm_CAPTCHA',
'phrase' => null,
);
/**
* CAPTCHA driver
@ -112,9 +112,12 @@ class HTML_QuickForm_CAPTCHA extends HTML_QuickForm_input
*
* @access public
*/
public function __construct($elementName = null, $elementLabel = null,
$options = null, $attributes = null)
{
public function __construct(
$elementName = null,
$elementLabel = null,
$options = null,
$attributes = null
) {
parent::__construct($elementName, $elementLabel, $attributes);
$this->setType('CAPTCHA_'.$this->_CAPTCHA_driver);

@ -54,9 +54,18 @@
*/
class HTML_QuickForm_CAPTCHA_Image extends HTML_QuickForm_CAPTCHA
{
function HTML_QuickForm_CAPTCHA_Image($elementName = null, $elementLabel = null, $options = null, $attributes = null) {
return parent::HTML_QuickForm_CAPTCHA($elementName, $elementLabel, $options, $attributes);
public function __construct(
$elementName = null,
$elementLabel = null,
$options = null,
$attributes = null
) {
return parent::__construct(
$elementName,
$elementLabel,
$options,
$attributes
);
}
/**

Loading…
Cancel
Save