diff --git a/system/View/ViewDecoratorTrait.php b/system/View/ViewDecoratorTrait.php index 97cdbe0a252d..1bec8acf012a 100644 --- a/system/View/ViewDecoratorTrait.php +++ b/system/View/ViewDecoratorTrait.php @@ -22,7 +22,7 @@ trait ViewDecoratorTrait */ protected function decorateOutput(string $html): string { - $decorators = \config(ViewConfig::class)->decorators; + $decorators = $this->config->decorators ?? config(ViewConfig::class)->decorators; foreach ($decorators as $decorator) { if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {