Skip to content

Commit

Permalink
🐛 media folder does not have to exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed Aug 19, 2024
1 parent 21f1654 commit 70e5952
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion commands/thumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}
// full site
if (! $root || $cli->arg('site')) {
$root = realpath(kirby()->roots()->index().'/media/').'/pages';
$root = kirby()->roots()->media().'/pages';
}
Dir::make($root); // make sure folder exists

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-janitor",
"type": "kirby-plugin",
"version": "4.3.0",
"version": "4.3.1",
"license": "MIT",
"homepage": "https://github.com/bnomei/kirby3-janitor",
"description": "Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code or a cronjob",
Expand Down
23 changes: 11 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'bnomei/kirby3-janitor',
'pretty_version' => '4.3.0',
'version' => '4.3.0.0',
'pretty_version' => '4.3.1',
'version' => '4.3.1.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby3-janitor' => array(
'pretty_version' => '4.3.0',
'version' => '4.3.0.0',
'pretty_version' => '4.3.1',
'version' => '4.3.1.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit 70e5952

Please sign in to comment.