[TASK] unserialize() without objects for extConf
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / Configuration / TCA / Overrides / pages.php
index 739e7fd..08bfb68 100644 (file)
@@ -1,18 +1,14 @@
 <?php
 defined('TYPO3_MODE') or die();
 
-call_user_func(
-    function ($extKey) {
-        $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$extKey]);
-
-        if (isset($extConf['loadContentElementWizardTsConfig']) && (int)$extConf['loadContentElementWizardTsConfig'] === 0) {
-            // Add pageTSconfig
-            \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
-                $extKey,
-                'Configuration/PageTSconfig/NewContentElementWizard.ts',
-                'CSS-based Content Elements'
-            );
-        }
-    },
-    'css_styled_content'
-);
+call_user_func(function () {
+    $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['css_styled_content'], ['allowed_classes' => false]);
+    if (isset($extConf['loadContentElementWizardTsConfig']) && (int)$extConf['loadContentElementWizardTsConfig'] === 0) {
+        // Add pageTSconfig
+        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
+            'css_styled_content',
+            'Configuration/PageTSconfig/NewContentElementWizard.ts',
+            'CSS-based Content Elements'
+        );
+    }
+});