Skip to content

Commit

Permalink
Merge pull request #149 from xerc/master
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller authored Oct 29, 2024
2 parents 2d80aa2 + c7166c0 commit 2684e8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Resource/SvgFileRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function findAllByStorageUids(array $storageUids): \Traversable
->groupBy('sys_file.uid', 'sys_file.storage', 'sys_file.identifier', 'sys_file.sha1')
->orderBy('sys_file.storage')
->addOrderBy('sys_file.identifier')
->execute()
->executeQuery()
->iterateAssociative()
;
}
Expand Down
3 changes: 2 additions & 1 deletion Classes/Service/SvgStoreService.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use HTML\Sourceopt\Resource\SvgFileRepository;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Resource\StorageRepository;
use TYPO3\CMS\Core\Utility\GeneralUtility;

Expand Down Expand Up @@ -59,7 +60,7 @@ class SvgStoreService implements \TYPO3\CMS\Core\SingletonInterface

public function __construct()
{
$this->sitePath = \TYPO3\CMS\Core\Core\Environment::getPublicPath(); // [^/]$
$this->sitePath = Environment::getPublicPath(); // [^/]$
$this->svgCache = GeneralUtility::makeInstance(CacheManager::class)->getCache('svgstore');

$this->spritePath = $this->svgCache->get('spritePath') ?: '';
Expand Down

0 comments on commit 2684e8b

Please sign in to comment.