Skip to content

Commit

Permalink
Use Site::version in System class to get the correct content file
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed May 22, 2024
1 parent 1568d28 commit adf7d44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Cms/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ public function exposedFileUrl(string $folder): string|null

switch ($folder) {
case 'content':
return $url . '/' . basename($this->app->site()->storage()->contentFile(
VersionId::published(),
'default'
));
return $url . '/' . basename($this->app->site()->version(VersionId::published())->contentFile());
case 'git':
return $url . '/config';
case 'kirby':
Expand Down

0 comments on commit adf7d44

Please sign in to comment.