Skip to content

Commit

Permalink
Edited lib/Cake/View/Helper/FormHelper.php via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
Maggion Emmanuel committed Aug 9, 2011
1 parent cb5f57f commit 6cd89b0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1073,9 +1073,7 @@ public function input($fieldName, $options = array()) {
$input = $this->textarea($fieldName, $options + array('cols' => '30', 'rows' => '6'));
break;
case 'url':
$options = $this->_initInputField($fieldName, $options);
$options['type'] = 'url';
$input = $this->Html->useTag('input', $options['name'], $options);
$input = $this->text($fieldName, array('type' => 'url') + $options);
break;
default:
$input = $this->{$type}($fieldName, $options);
Expand Down

0 comments on commit 6cd89b0

Please sign in to comment.