Skip to content

Commit

Permalink
Revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jun 17, 2024
1 parent db198ee commit 277891c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cms/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ public static function create(array $props): static

$language->save();

// update the main languages collection in the app instance
$kirby->languages(false)->append($language->code(), $language);

if ($languages->count() === 0) {
foreach ($kirby->models() as $model) {
$model->storage()->moveLanguage(
Expand All @@ -188,6 +185,9 @@ public static function create(array $props): static
}
}

// update the main languages collection in the app instance
$kirby->languages(false)->append($language->code(), $language);

// trigger after hook
$kirby->trigger(
'language.create:after',
Expand Down

0 comments on commit 277891c

Please sign in to comment.