mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Removing deprecated function call from HtmlHelper::checkbox()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6419 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5138bcda38
commit
41cb80ee46
1 changed files with 1 additions and 1 deletions
|
@ -693,7 +693,7 @@ class HtmlHelper extends AppHelper {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$model = $this->model();
|
$model = $this->model();
|
||||||
if (isset($htmlAttributes['value']) || (!class_exists($model) && !loadModel($model))) {
|
if (isset($htmlAttributes['value']) || (!class_exists($model) && !App::import('Model', $model))) {
|
||||||
if (isset($htmlAttributes['value']) && $htmlAttributes['value'] == $value) {
|
if (isset($htmlAttributes['value']) && $htmlAttributes['value'] == $value) {
|
||||||
$htmlAttributes['checked'] = 'checked';
|
$htmlAttributes['checked'] = 'checked';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue