From 73bf083a3fa089f58a1b1b1511e40657fe992b3d Mon Sep 17 00:00:00 2001 From: Mostafa Khudair <59371810+mostafakhudair@users.noreply.github.com> Date: Thu, 21 Dec 2023 21:30:22 +0200 Subject: [PATCH] Update ViewDecoratorTrait.php --- system/View/ViewDecoratorTrait.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/View/ViewDecoratorTrait.php b/system/View/ViewDecoratorTrait.php index 3f52b72a8ab9..1bec8acf012a 100644 --- a/system/View/ViewDecoratorTrait.php +++ b/system/View/ViewDecoratorTrait.php @@ -12,6 +12,7 @@ namespace CodeIgniter\View; use CodeIgniter\View\Exceptions\ViewException; +use Config\View as ViewConfig; trait ViewDecoratorTrait { @@ -21,7 +22,7 @@ trait ViewDecoratorTrait */ protected function decorateOutput(string $html): string { - $decorators = $this->config->decorators ?? \config(ViewConfig::class)->decorators; + $decorators = $this->config->decorators ?? config(ViewConfig::class)->decorators; foreach ($decorators as $decorator) { if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {