From 6377e9f914e93f6aabf141cf02466b571a9732a2 Mon Sep 17 00:00:00 2001 From: David Yell Date: Mon, 30 Apr 2018 12:14:29 +0100 Subject: [PATCH] More deprecations --- src/View/Helper/BooleanHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Helper/BooleanHelper.php b/src/View/Helper/BooleanHelper.php index 925b0a2..4bf8fa2 100644 --- a/src/View/Helper/BooleanHelper.php +++ b/src/View/Helper/BooleanHelper.php @@ -45,9 +45,9 @@ class BooleanHelper extends Helper public function display($value) { if ($value === true || $value == 1) { - $return = $this->Html->tag('span', $this->config()[1]['display'], ['class' => $this->config()[1]['class']]); + $return = $this->Html->tag('span', $this->getConfig()[1]['display'], ['class' => $this->getConfig()[1]['class']]); } else { - $return = $this->Html->tag('span', $this->config()[0]['display'], ['class' => $this->config()[0]['class']]); + $return = $this->Html->tag('span', $this->getConfig()[0]['display'], ['class' => $this->getConfig()[0]['class']]); } return $return;