Permalink
Browse files

Edited lib/Cake/View/Helper/FormHelper.php via GitHub

  • Loading branch information...
1 parent cb5f57f commit 6cd89b09925e1bd9d8b946627106be5b2f1d46b6 Maggion Emmanuel committed Aug 9, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/Cake/View/Helper/FormHelper.php
@@ -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);

0 comments on commit 6cd89b0

Please sign in to comment.