From 880fbabf9d190a06bda5efca24c7f3493176661f Mon Sep 17 00:00:00 2001 From: Ciprian Hossu <ciprian.hossu@sgalinski.de> Date: Fri, 12 Jun 2020 14:52:45 +0300 Subject: [PATCH] [BUGFIX] Change configuration array variable name. --- Classes/Hooks/PluginRenderer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Hooks/PluginRenderer.php b/Classes/Hooks/PluginRenderer.php index 1f3bf83..1607890 100644 --- a/Classes/Hooks/PluginRenderer.php +++ b/Classes/Hooks/PluginRenderer.php @@ -94,7 +94,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { // Get contents of the FlexForm configuration file $xmlString = file_get_contents($xmlContent); - $arrayJobs = GeneralUtility::xml2array($xmlString); + $configurationArray = GeneralUtility::xml2array($xmlString); // Begin rendering of table $itemContent .= '<br>' . '<table class="table table-striped">'; @@ -113,10 +113,10 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { foreach ($pluginOptions['data']['sDEF']['lDEF'] as $key => $setting) { // if plugin option exists within the Flexform configuration file - if (array_key_exists($key, $arrayJobs['sheets']['sDEF']['ROOT']['el'])) { + if (array_key_exists($key, $configurationArray['sheets']['sDEF']['ROOT']['el'])) { // Display label - $labelId = $arrayJobs['sheets']['sDEF']['ROOT']['el'][$key]['TCEforms']['label']; + $labelId = $configurationArray['sheets']['sDEF']['ROOT']['el'][$key]['TCEforms']['label']; $itemContent .= '<row>' . '<td><strong>' . $translationServiceObject->translate( trim($labelId) ) . '</strong></td>'; -- GitLab