Skip to content

Commit

Permalink
TASK: Compatibility with Neos 2.1 (static thumbnail resources)
Browse files Browse the repository at this point in the history
  • Loading branch information
aertmann committed Jan 10, 2016
1 parent 08e80eb commit c634320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Aspects/ThumbnailAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public function optimizeThumbnail(JoinPointInterface $joinPoint) {
/** @var \TYPO3\Media\Domain\Model\Thumbnail $thumbnail */
$thumbnail = $joinPoint->getProxy();
$thumbnailResource = $thumbnail->getResource();
if (!$thumbnailResource) {
return;
}

$streamMetaData = stream_get_meta_data($thumbnailResource->getStream());
$pathAndFilename = $streamMetaData['uri'];
Expand Down

0 comments on commit c634320

Please sign in to comment.