Skip to content

Commit

Permalink
Fix loadDataContainer for load Class
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Jan 18, 2023
1 parent 96f5f84 commit c1713b7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Listener/BuildPalettesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
* @author David Molineus <david.molineus@netzmacht.de>
* @author Christopher Bölter <christopher@boelter.eu>
* @author Sven Baumann <baumann.sv@gmail.com>
* @author Ingolf Steinhardt <info@e-spin.de>
* @copyright 2013-2014 bit3 UG
* @copyright 2015-2018 Contao Community Alliance.
* @copyright 2015-2023 Contao Community Alliance.
* @license LGPL-3.0+ https://github.com/contao-community-alliance/meta-palettes/license
* @link https://github.com/bit3/contao-meta-palettes
*/

namespace ContaoCommunityAlliance\MetaPalettes\Listener;

use Contao\System;
use ContaoCommunityAlliance\DcGeneral\DC\General;
use ContaoCommunityAlliance\MetaPalettes\Parser\Interpreter;
use ContaoCommunityAlliance\MetaPalettes\Parser\Parser;

Expand Down Expand Up @@ -69,7 +71,11 @@ public function onLoadDataContainer($strTable)

// The MetaPalettesBuilder is used for DC_General
if (isset($GLOBALS['TL_DCA'][$strTable]['config']['dataContainer'])
&& $GLOBALS['TL_DCA'][$strTable]['config']['dataContainer'] == 'General'
&& in_array(
$GLOBALS['TL_DCA'][$strTable]['config']['dataContainer'],
['General', General::class],
true
)
) {
return;
}
Expand Down

0 comments on commit c1713b7

Please sign in to comment.