Skip to content

Commit 2684e8b

Browse files
authored
Merge pull request #149 from xerc/master
[FIX] 5cc52f3 #147
2 parents 2d80aa2 + c7166c0 commit 2684e8b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Classes/Resource/SvgFileRepository.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function findAllByStorageUids(array $storageUids): \Traversable
5050
->groupBy('sys_file.uid', 'sys_file.storage', 'sys_file.identifier', 'sys_file.sha1')
5151
->orderBy('sys_file.storage')
5252
->addOrderBy('sys_file.identifier')
53-
->execute()
53+
->executeQuery()
5454
->iterateAssociative()
5555
;
5656
}

Classes/Service/SvgStoreService.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use HTML\Sourceopt\Resource\SvgFileRepository;
88
use TYPO3\CMS\Core\Cache\CacheManager;
99
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
10+
use TYPO3\CMS\Core\Core\Environment;
1011
use TYPO3\CMS\Core\Resource\StorageRepository;
1112
use TYPO3\CMS\Core\Utility\GeneralUtility;
1213

@@ -59,7 +60,7 @@ class SvgStoreService implements \TYPO3\CMS\Core\SingletonInterface
5960

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

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

0 commit comments

Comments
 (0)