Skip to content

Commit

Permalink
Fixed onFatalException being handled/rendered when in CLI and in Admin
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed May 12, 2020
1 parent f936ecb commit c59d1bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.0.4
## dd/mm/2020

1. [](#bugfix)
* Fixed `onFatalException` being handled/rendered when in CLI and in Admin

# v2.0.3
## 05/09/2019

Expand Down
5 changes: 4 additions & 1 deletion problems.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public static function getSubscribedEvents()
['autoload', 100002],
['onPluginsInitialized', 100001]
],
'onFatalException' => ['onFatalException', 0],
'onAdminGenerateReports' => ['onAdminGenerateReports', 0],
'onAdminCompilePresetSCSS' => ['onAdminCompilePresetSCSS', 0]
];
Expand Down Expand Up @@ -66,6 +65,10 @@ public function onPluginsInitialized()
return;
}

$this->enable([
'onFatalException' => ['onFatalException', 0],
]);

$this->checker = new ProblemChecker();

if (!$this->checker->statusFileExists()) {
Expand Down

0 comments on commit c59d1bc

Please sign in to comment.