Skip to content

Commit 73bf083

Browse files
Update ViewDecoratorTrait.php
1 parent 753fe0e commit 73bf083

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/View/ViewDecoratorTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace CodeIgniter\View;
1313

1414
use CodeIgniter\View\Exceptions\ViewException;
15+
use Config\View as ViewConfig;
1516

1617
trait ViewDecoratorTrait
1718
{
@@ -21,7 +22,7 @@ trait ViewDecoratorTrait
2122
*/
2223
protected function decorateOutput(string $html): string
2324
{
24-
$decorators = $this->config->decorators ?? \config(ViewConfig::class)->decorators;
25+
$decorators = $this->config->decorators ?? config(ViewConfig::class)->decorators;
2526

2627
foreach ($decorators as $decorator) {
2728
if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {

0 commit comments

Comments
 (0)