Skip to content

Commit

Permalink
Merge pull request #216 from bjo3rnf/compat
Browse files Browse the repository at this point in the history
[TASK] Adapt to new wrapper method in Flux
  • Loading branch information
NamelessCoder committed Nov 28, 2014
2 parents 4109cff + 6faa23d commit c82b035
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/Service/ConfigurationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use FluidTYPO3\Flux\Core;
use FluidTYPO3\Flux\Service\FluxService;
use FluidTYPO3\Flux\Utility\ExtensionNamingUtility;
use FluidTYPO3\Flux\Utility\RecursiveArrayUtility;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\SingletonInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down Expand Up @@ -122,7 +123,7 @@ public function getPageConfiguration($extensionName = NULL) {
}
$newLocation = (array) $this->getTypoScriptSubConfiguration($extensionName, 'collections', 'fluidpages');
$oldLocation = (array) $this->getTypoScriptSubConfiguration($extensionName, 'page', 'fed');
$merged = (array) GeneralUtility::array_merge_recursive_overrule($oldLocation, $newLocation);
$merged = RecursiveArrayUtility::mergeRecursiveOverrule($oldLocation, $newLocation);
if (NULL === $extensionName) {
$registeredExtensionKeys = Core::getRegisteredProviderExtensionKeys('Page');
foreach ($registeredExtensionKeys as $registeredExtensionKey) {
Expand All @@ -141,7 +142,7 @@ public function getPageConfiguration($extensionName = NULL) {
} else {
$nativeViewLocation = $this->getViewConfigurationForExtensionName($extensionName);
if (TRUE === is_array($nativeViewLocation)) {
$merged = GeneralUtility::array_merge_recursive_overrule($nativeViewLocation, $merged);
$merged = RecursiveArrayUtility::mergeRecursiveOverrule($nativeViewLocation, $merged);
}
if (FALSE === isset($nativeViewLocation['extensionKey'])) {
$merged['extensionKey'] = ExtensionNamingUtility::getExtensionKey($extensionName);
Expand Down

0 comments on commit c82b035

Please sign in to comment.