Skip to content
Permalink
Browse files

Use FormHelper->label instead of HtmlHelper->useTag

Implementing suggested fix by mark_story
  • Loading branch information...
aread22 committed Sep 4, 2013
1 parent 4ab1c8c commit cb056a5cbeb9760a91af229d2a6b9b95a79b50b6
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/Cake/View/Helper/FormHelper.php
@@ -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)) {

0 comments on commit cb056a5

Please sign in to comment.
You can’t perform that action at this time.