Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Jul 2, 2024
1 parent ff56114 commit e4eb812
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/TopicContent/H5P.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function fixAssetPaths(): array
Storage::delete($destination);
}

$filepath = file_exists($filepath) ? $filepath : Storage::path($filepath);
$inputStream = fopen($filepath, 'r+');
Storage::getDriver()->writeStream($destination, $inputStream);

Expand Down

0 comments on commit e4eb812

Please sign in to comment.