Project

General

Profile

Actions

Bug #47993

closed

Possible 6.1 TCA load regression if calling includeTCA() in eid context

Added by Christian Kuhn about 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-05-06
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Index: typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
===================================================================
--- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php    (revision 709)
+++ typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php    (working copy)
@@ -2459,6 +2459,9 @@
     public function includeTCA($TCAloaded = 1) {
         // Full TCA is always loaded during bootstrap in FE, this method is obsolete.
         \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
+        if (!is_array($GLOBALS['TCA']) || !isset($GLOBALS['TCA']['pages'])) {
+            \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->loadCachedTca();
+        }
     }

     /**

Actions

Also available in: Atom PDF