Skip to content

Commit

Permalink
Use File::version() in File::modifiedContent()
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed May 22, 2024
1 parent 818c64a commit 650f3d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cms/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 650f3d3

Please sign in to comment.