Skip to content

Commit

Permalink
Normalize implementation syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 28, 2024
1 parent 1bdf4ba commit 96781f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/framework/src/Support/Filesystem/MediaFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ public static function outputPath(string $path = ''): string
return Hyde::sitePath(Hyde::getMediaOutputDirectory());
}

$path = unslash($path);

return Hyde::sitePath(Hyde::getMediaOutputDirectory()."/$path");
return Hyde::sitePath(path_join(Hyde::getMediaOutputDirectory(), unslash($path)));
}

public function getIdentifier(): string
Expand Down

0 comments on commit 96781f9

Please sign in to comment.