Skip to content

Commit 3a4ade9

Browse files
committed
view() now properly reads the app config again. Fixes #1621
1 parent 7993a78 commit 3a4ade9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

system/Config/Services.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ public static function toolbar(\Config\Toolbar $config = null, bool $getShared =
762762

763763
if (! is_object($config))
764764
{
765-
$config = config(\Config\Toolbar::class);
765+
$config = config('Toolbar');
766766
}
767767

768768
return new \CodeIgniter\Debug\Toolbar($config);

system/Debug/Toolbar/Collectors/Views.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Views extends BaseCollector
106106
*/
107107
public function __construct()
108108
{
109-
$this->viewer = Services::renderer(null, true);
109+
$this->viewer = Services::renderer();
110110
}
111111

112112
//--------------------------------------------------------------------

0 commit comments

Comments
 (0)