Skip to content

Commit

Permalink
Update ViewDecoratorTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafakhudair authored Dec 21, 2023
1 parent 753fe0e commit 73bf083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/View/ViewDecoratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace CodeIgniter\View;

use CodeIgniter\View\Exceptions\ViewException;
use Config\View as ViewConfig;

trait ViewDecoratorTrait
{
Expand All @@ -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)) {
Expand Down

0 comments on commit 73bf083

Please sign in to comment.