From 650f3d356c6bcbbe56c30a01e5a672eece0ddb02 Mon Sep 17 00:00:00 2001 From: Bastian Allgeier Date: Tue, 21 May 2024 16:23:30 +0200 Subject: [PATCH] Use File::version() in File::modifiedContent() --- src/Cms/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cms/File.php b/src/Cms/File.php index 43ef18479a..3800916dfe 100644 --- a/src/Cms/File.php +++ b/src/Cms/File.php @@ -426,7 +426,7 @@ public function modified( */ protected function modifiedContent(string|null $languageCode = null): int { - return $this->storage()->modified(VersionId::published(), $languageCode) ?? 0; + return $this->version(VersionId::published())->modified($languageCode ?? 'default') ?? 0; } /**