Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
🐛 kirby 3.4 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Jul 8, 2020
1 parent 464a5db commit 9453181
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/Doctor.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public static function check($force = false): ?array

public static function log(string $msg = '', string $level = 'info', array $context = []): bool
{
$log = option('bnomei.doctor.log');
$log = option('bnomei.doctor.log.fn');
if ($log && is_callable($log)) {
if (! option('debug') && $level === 'debug') {
// skip but...
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-doctor",
"type": "kirby-plugin",
"version": "1.4.3",
"version": "1.4.4",
"description": "Kirby 3 Plugin to check health of your CMS installation.",
"license": "MIT",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'label.cooldown' => 2000,
'checks' => [],
'log.enabled' => true,
'log' => function (string $msg, string $level = 'info', array $context = []): bool {
'log.fn' => function (string $msg, string $level = 'info', array $context = []): bool {
if (option('bnomei.doctor.log.enabled') && function_exists('kirbyLog')) {
kirbyLog('bnomei.doctor.log')->log($msg, $level, $context);
return true;
Expand Down

0 comments on commit 9453181

Please sign in to comment.