Skip to content
Snippets Groups Projects
Commit 880fbabf authored by Ciprian Hossu's avatar Ciprian Hossu
Browse files

[BUGFIX] Change configuration array variable name.

parent 698beec5
No related branches found
No related tags found
1 merge request!1[FEATURE] Add backend preview for the YouTube Videos plugin
......@@ -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>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment