Skip to content

Commit

Permalink
Merge pull request #1 from peterkraume/292-storagepid
Browse files Browse the repository at this point in the history
[BUGFIX] Fix storagePid problem in PostRepository
  • Loading branch information
visualmovement authored Apr 17, 2024
2 parents ce2dc48 + 279d669 commit e9ca105
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Domain/Repository/PostRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class PostRepository extends Repository
public function initializeObject(): void
{
$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
$this->settings = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'blog');

$querySettings = GeneralUtility::makeInstance(
Typo3QuerySettings::class,
Expand Down Expand Up @@ -414,7 +413,10 @@ public function findRelatedPosts(int $categoryMultiplier = 1, int $tagMultiplier

protected function getStoragePidsFromTypoScript(): array
{
return GeneralUtility::intExplode(',', $this->settings['persistence']['storagePid']);
$configurationManager = GeneralUtility::makeInstance(ConfigurationManagerInterface::class);
$settings = $configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);

return GeneralUtility::intExplode(',', $settings['persistence']['storagePid']);
}

/**
Expand Down

0 comments on commit e9ca105

Please sign in to comment.