Skip to content

Commit

Permalink
Use FormHelper->label instead of HtmlHelper->useTag
Browse files Browse the repository at this point in the history
Implementing suggested fix by mark_story
  • Loading branch information
aread22 committed Sep 4, 2013
1 parent 4ab1c8c commit cb056a5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1520,11 +1520,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) {
);

if ($label) {
if (is_array($label)) {
$optTitle = $this->label($tagName, $optTitle, $label);
} else {
$optTitle = $this->Html->useTag('label', $tagName, '', $optTitle);
}
$optTitle = $this->label($tagName, $optTitle, is_array($label) ? $label : null);
}

if (is_array($between)) {
Expand Down

0 comments on commit cb056a5

Please sign in to comment.