Skip to content

Commit

Permalink
Fix ContentTranslation::contentFile by using ::version
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed May 22, 2024
1 parent adf7d44 commit 4939b2e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Content/ContentTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,7 @@ public function content(): array
*/
public function contentFile(): string
{
return $this->contentFile = $this->parent->storage()->contentFile(
VersionId::default($this->parent),
$this->code
);
return $this->contentFile = $this->parent->version(VersionId::default($this->parent))->contentFile($this->code);
}

/**
Expand Down

0 comments on commit 4939b2e

Please sign in to comment.