From 3a4ade90d57f03b00f12c068964f8fdcaec135e4 Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Wed, 19 Dec 2018 22:57:57 -0600 Subject: [PATCH] view() now properly reads the app config again. Fixes #1621 --- system/Config/Services.php | 2 +- system/Debug/Toolbar/Collectors/Views.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Config/Services.php b/system/Config/Services.php index 7cdc4fbd354b..ae35f9550d1e 100644 --- a/system/Config/Services.php +++ b/system/Config/Services.php @@ -762,7 +762,7 @@ public static function toolbar(\Config\Toolbar $config = null, bool $getShared = if (! is_object($config)) { - $config = config(\Config\Toolbar::class); + $config = config('Toolbar'); } return new \CodeIgniter\Debug\Toolbar($config); diff --git a/system/Debug/Toolbar/Collectors/Views.php b/system/Debug/Toolbar/Collectors/Views.php index 5dc87e8921de..6bfc8e68706a 100644 --- a/system/Debug/Toolbar/Collectors/Views.php +++ b/system/Debug/Toolbar/Collectors/Views.php @@ -106,7 +106,7 @@ class Views extends BaseCollector */ public function __construct() { - $this->viewer = Services::renderer(null, true); + $this->viewer = Services::renderer(); } //--------------------------------------------------------------------