diff --git a/src/Cms/File.php b/src/Cms/File.php index 3113a10c35..4e6b75ce3f 100644 --- a/src/Cms/File.php +++ b/src/Cms/File.php @@ -308,7 +308,7 @@ public function is(File $file): bool } /** - * Checks if the files is accessible. + * Checks if the file is accessible to the current user * This permission depends on the `read` option until v5 */ public function isAccessible(): bool diff --git a/src/Cms/Language.php b/src/Cms/Language.php index bd5f8fb44e..e1f3a4410c 100644 --- a/src/Cms/Language.php +++ b/src/Cms/Language.php @@ -572,7 +572,6 @@ public function update(array|null $props = null): static // make sure the slug is nice and clean $props['slug'] = Str::slug($props['slug'] ?? null); - // trigger before hook $language = $kirby->apply( 'language.update:before', @@ -615,7 +614,7 @@ public function update(array|null $props = null): static [ 'newLanguage' => $language, 'oldLanguage' => $this, - 'input' => $props + 'input' => $props ], 'newLanguage' ); diff --git a/src/Cms/Page.php b/src/Cms/Page.php index 45e78c1b0b..766369c81e 100644 --- a/src/Cms/Page.php +++ b/src/Cms/Page.php @@ -512,7 +512,7 @@ public function is($page): bool } /** - * Checks if the page is accessible that accessible and listable. + * Checks if the page is accessible to the current user * This permission depends on the `read` option until v5 */ public function isAccessible(): bool