Browse Source

Merge pull request #8905 from cakephp/optimizations

Remove redundant code.
Mark Story 9 years ago
parent
commit
445e0cc71b
2 changed files with 1 additions and 4 deletions
  1. 0 3
      src/View/Helper/FormHelper.php
  2. 1 1
      src/View/Widget/FileWidget.php

+ 0 - 3
src/View/Helper/FormHelper.php

@@ -1132,9 +1132,6 @@ class FormHelper extends Helper
                 $opts = $options['options'];
                 unset($options['options']);
                 return $this->multicheckbox($fieldName, $opts, $options);
-            case 'url':
-                $options = $this->_initInputField($fieldName, $options);
-                return $this->widget($options['type'], $options);
             default:
                 return $this->{$options['type']}($fieldName, $options);
         }

+ 1 - 1
src/View/Widget/FileWidget.php

@@ -65,7 +65,7 @@ class FileWidget implements WidgetInterface
             'templateVars' => $data['templateVars'],
             'attrs' => $this->_templates->formatAttributes(
                 $data,
-                ['name', 'val']
+                ['name']
             )
         ]);
     }