Skip to content

Commit

Permalink
Merge branch 'release-12.43.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 17, 2025
2 parents 449b496 + 19d6960 commit 11d5a27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/export/service/MediaResourcePreparer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ private function replaceComponentPath(BodyElement $component, MediaAsset $mediaA

$contents = $stream->getContents();

if (!$contents) {
throw new tao_models_classes_FileNotFoundException($fileInfo['link']);
}

$base64Content = $this->getEncodedSource($fileInfo['mime'], $contents);

$this->setComponentSource($component, $base64Content);
Expand Down

0 comments on commit 11d5a27

Please sign in to comment.