Skip to content

Commit

Permalink
Merge pull request #99 from ADmad/4.x-deprecation
Browse files Browse the repository at this point in the history
Fix deprecation warning with CakePHP 3.7.
  • Loading branch information
WyriHaximus authored Dec 11, 2018
2 parents 822ffd4 + de36e5b commit 54d69c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
EventManager::instance()->on(new Event\ExtensionsListener());
EventManager::instance()->on(new Event\TokenParsersListener());

if (Configure::read('debug') && Plugin::loaded('DebugKit')) {
if (Configure::read('debug') && Plugin::getCollection()->has('DebugKit')) {
Configure::write('DebugKit.panels', array_merge(
(array)Configure::read('DebugKit.panels'),
[
Expand Down

0 comments on commit 54d69c1

Please sign in to comment.