From 9f5f75b0f0a4a3fde6d2d1480e305050313321be Mon Sep 17 00:00:00 2001 From: Pascal Rinker Date: Wed, 28 Nov 2018 10:34:17 +0100 Subject: [PATCH] [RELEASE] 4.1.2 - Bugfix: Nested rootlines are not respected (thanks to @kraemer-ig 4.1.2 --- Classes/AvalexPlugin.php | 2 +- ext_emconf.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/AvalexPlugin.php b/Classes/AvalexPlugin.php index e753f95..752895f 100644 --- a/Classes/AvalexPlugin.php +++ b/Classes/AvalexPlugin.php @@ -53,7 +53,7 @@ protected function getRootForCurrentPage() $currentPageUid = $this->getTypoScriptFrontendController()->id; $rootLine = $pageRepository->getRootLine($currentPageUid); $rootPageUid = 0; - while ($page = array_pop($rootLine)) { + foreach ($rootLine as $page) { if ($page['is_siteroot']) { $rootPageUid = $page['uid']; break; diff --git a/ext_emconf.php b/ext_emconf.php index 29ba908..0571afc 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -3,7 +3,7 @@ ######################################################################## # Extension Manager/Repository config file for ext "avalex". # -# Auto generated 22-11-2018 09:46 +# Auto generated 28-11-2018 10:31 # # Manual updates: # Only the data in the array - everything else is removed by next @@ -21,7 +21,7 @@ 'uploadfolder' => '', 'createDirs' => '', 'clearCacheOnLoad' => 0, - 'version' => '4.1.1', + 'version' => '4.1.2', 'constraints' => array( 'depends' => array( 'typo3' => '4.3.0-6.1.99', @@ -34,7 +34,7 @@ ), ), 'clearcacheonload' => '', - '_md5_values_when_last_written' => 'a:17:{s:16:"ext_autoload.php";s:4:"1bc1";s:12:"ext_icon.gif";s:4:"5c06";s:17:"ext_localconf.php";s:4:"886d";s:14:"ext_tables.php";s:4:"87dd";s:14:"ext_tables.sql";s:4:"2c7f";s:24:"Classes/AvalexPlugin.php";s:4:"6f62";s:48:"Classes/Domain/Repository/AbstractRepository.php";s:4:"7ea2";s:59:"Classes/Domain/Repository/AvalexConfigurationRepository.php";s:4:"e035";s:49:"Classes/Domain/Repository/LegalTextRepository.php";s:4:"a9b0";s:41:"Classes/Exception/InvalidUidException.php";s:4:"d4b5";s:29:"Classes/Hooks/DataHandler.php";s:4:"9ccc";s:29:"Classes/Task/ImporterTask.php";s:4:"36fd";s:30:"Classes/Utility/ApiUtility.php";s:4:"da91";s:45:"Configuration/TCA/tx_avalex_configuration.php";s:4:"fc54";s:41:"Configuration/TCA/tx_avalex_legaltext.php";s:4:"e165";s:40:"Resources/Private/Language/locallang.xml";s:4:"9bbb";s:43:"Resources/Private/Language/locallang_db.xml";s:4:"ee7c";}', + '_md5_values_when_last_written' => 'a:17:{s:16:"ext_autoload.php";s:4:"1bc1";s:12:"ext_icon.gif";s:4:"5c06";s:17:"ext_localconf.php";s:4:"886d";s:14:"ext_tables.php";s:4:"87dd";s:14:"ext_tables.sql";s:4:"2c7f";s:24:"Classes/AvalexPlugin.php";s:4:"9dff";s:48:"Classes/Domain/Repository/AbstractRepository.php";s:4:"7ea2";s:59:"Classes/Domain/Repository/AvalexConfigurationRepository.php";s:4:"e035";s:49:"Classes/Domain/Repository/LegalTextRepository.php";s:4:"a9b0";s:41:"Classes/Exception/InvalidUidException.php";s:4:"d4b5";s:29:"Classes/Hooks/DataHandler.php";s:4:"9ccc";s:29:"Classes/Task/ImporterTask.php";s:4:"36fd";s:30:"Classes/Utility/ApiUtility.php";s:4:"da91";s:45:"Configuration/TCA/tx_avalex_configuration.php";s:4:"fc54";s:41:"Configuration/TCA/tx_avalex_legaltext.php";s:4:"e165";s:40:"Resources/Private/Language/locallang.xml";s:4:"9bbb";s:43:"Resources/Private/Language/locallang_db.xml";s:4:"ee7c";}', ); ?> \ No newline at end of file