Skip to content

Commit

Permalink
Fix for plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Aug 15, 2018
1 parent 63161e6 commit 5934007
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/src/Grav/Common/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ public function init()
$this->enabled = $this->config->get('system.debugger.enabled');

if ($this->enabled()) {

$plugins_config = (array)$this->config->get('plugins');

ksort($plugins_config);


$this->debugbar->addCollector(new ConfigCollector((array)$this->config->get('system'), 'Config'));
$this->debugbar->addCollector(new ConfigCollector((array)$this->config->get('plugins'), 'Plugins'));
$this->debugbar->addCollector(new ConfigCollector($plugins_config, 'Plugins'));
$this->addMessage('Grav v' . GRAV_VERSION);
}

Expand Down

0 comments on commit 5934007

Please sign in to comment.