Skip to content

Commit 55eaf11

Browse files
committed
Merge branch 'master' of github.com:nchankov/cakephp-plugin-boost_cake into nchankov-master
2 parents efc3959 + c60bad3 commit 55eaf11

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ If you want to simplify the options, you can develop WrapBoostCake plugin.
4343
* Add `div` wrapping input
4444
* Add content before and after `input`
4545
* Add error class in outer `div`
46-
* Change pgination tags
47-
* Change SessionHelper::flash()`s tmplate
46+
* Change pagination tags
47+
* Change SessionHelper::flash()`s template

View/Helper/BoostCakeHtmlHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ public function useTag($tag) {
1919
if ($tag === 'radio') {
2020
$regex = '/(<label)(.*?>)/';
2121
if (preg_match($regex, $html, $match)) {
22-
$html = $match[1] . ' class="radio"' . $match[2] . preg_replace($regex, ' ', $html);
22+
$html = $match[1] . ' class="radio'.(isset($args[3]['class']) ? ' '.$args[3]['class'] : '').'"' . $match[2] . preg_replace($regex, ' ', $html);
2323
}
2424
}
2525

2626
return $html;
2727
}
2828

29-
}
29+
}

0 commit comments

Comments
 (0)