From 4939b2ef78013afca14bc8ac16f5975feed2ce04 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Tue, 21 May 2024 16:39:25 +0200 Subject: [PATCH] Fix ContentTranslation::contentFile by using ::version --- src/Content/ContentTranslation.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Content/ContentTranslation.php b/src/Content/ContentTranslation.php index ee3eed2a76..39c2764098 100644 --- a/src/Content/ContentTranslation.php +++ b/src/Content/ContentTranslation.php @@ -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); } /**