diff options
author | Sjon Hortensius <sjon@hortensius.net> | 2016-01-17 14:01:29 +0100 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-17 08:09:13 -0500 |
commit | d8a88826827233f8e9a00786c07f4242ae0a48e9 (patch) | |
tree | 2d7d2b5786c87171396f76389810256374cc572c /src | |
parent | e163952f29d1b9bc68731985c14caa3129ce49ce (diff) | |
download | pfsense-d8a88826827233f8e9a00786c07f4242ae0a48e9.zip pfsense-d8a88826827233f8e9a00786c07f4242ae0a48e9.tar.gz |
Fix inconsistencies in Form_Input
renamed get_type to getType
fix capitalisation in getTagName
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/classes/Form/Group.class.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/classes/Form/Input.class.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/classes/Form/Group.class.php b/src/usr/local/www/classes/Form/Group.class.php index 64d1db3..e1ddaac 100644 --- a/src/usr/local/www/classes/Form/Group.class.php +++ b/src/usr/local/www/classes/Form/Group.class.php @@ -132,11 +132,11 @@ EOT; foreach ($missingWidth as $input) $input->setWidth($spaceLeft / count($missingWidth)); - if (strtolower($this->_labelTarget->get_Type()) == 'hidden') + if (strtolower($this->_labelTarget->getType()) == 'hidden') $hidden = true; $form_controls = array('input', 'select', 'button', 'textarea', 'option', 'optgroup', 'fieldset', 'label'); - if (in_array(strtolower($this->_labelTarget->gettagName()), $form_controls) && !$hidden) + if (in_array(strtolower($this->_labelTarget->getTagName()), $form_controls) && !$hidden) $target = $this->_labelTarget->getId(); $inputs = implode('', $this->_inputs); diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php index 836251d..4cdfb28 100644 --- a/src/usr/local/www/classes/Form/Input.class.php +++ b/src/usr/local/www/classes/Form/Input.class.php @@ -106,12 +106,12 @@ class Form_Input extends Form_Element return $this->_attributes['id']; } - public function get_Type() + public function getType() { return $this->_attributes['type']; } - public function gettagName() + public function getTagName() { return $this->_tagName; } |