Skip to content

Commit

Permalink
🐛 does not call global helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed Feb 26, 2020
1 parent d040a3a commit e0a4fb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/Janitor.php
Expand Up @@ -86,7 +86,7 @@ public function job(string $name, array $data = []): array
{
$job = $this->findJob($name);

if (is_callable($job)) {
if (!is_string($job) && is_callable($job)) {
return $this->jobFromCallable($job, $data);
} elseif (class_exists($job)) {
return $this->jobFromClass($job, $data);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-janitor",
"type": "kirby-plugin",
"version": "2.3.2",
"version": "2.3.3",
"license": "MIT",
"description": "Kirby 3 Plugin for running jobs like cleaning the cache from within the Panel, PHP code or a cronjob",
"authors": [
Expand Down

0 comments on commit e0a4fb2

Please sign in to comment.