Skip to content

Commit

Permalink
HTML_Quickformはcomposer対応版を利用しているため、$GLOBALS['HTML_QUICKFORM_ELEMENT_…
Browse files Browse the repository at this point in the history
…TYPES']にはクラス名のみで良いため修正
  • Loading branch information
mokotiyo committed Jul 5, 2018
1 parent 8594626 commit 3913aa6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions BEAR/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,8 @@ public function factory()
$page->setConfig('redner_form', true);
self::$_renderConfig[$formName] = $this->_config;
// extra elements
$GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']['bcheckbox'] = array(
_BEAR_BEAR_HOME . '/BEAR/Form/elements/bcheckbox.php',
'HTML_QuickForm_bcheckbox'
);
$GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']['bradio'] = array(
_BEAR_BEAR_HOME . '/BEAR/Form/elements/bradio.php',
'HTML_QuickForm_bradio'
);
$GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']['bcheckbox'] = 'HTML_QuickForm_bcheckbox';
$GLOBALS['HTML_QUICKFORM_ELEMENT_TYPES']['bradio'] = 'HTML_QuickForm_bradio';

return $formObject;
}
Expand Down

0 comments on commit 3913aa6

Please sign in to comment.