[BUGFIX] Warning empty $GLOBALS['TCA'] in rootline utility 00/19200/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 22 Mar 2013 18:51:56 +0000 (19:51 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 22 Mar 2013 19:57:31 +0000 (20:57 +0100)
commitbf8ba7201198107f1aee49eefc7dd4335b7e2a07
treed772797ec3006510fe87c843c0aee5dcfcf218a2
parentced52d8efba178a050ee40ce8885ff3a2014f3b7
[BUGFIX] Warning empty $GLOBALS['TCA'] in rootline utility

The TCA refactoring of issue #45767 introduced a warning in the
rootline utility: Rootline resolving is called by determineID in
index_ts. At this point in bootstrap the TCA was not loaded yet.
The patch just moves the TCA includes prior to determineID.

Warning: This leads to an earlier execution of ext_tables.php if
caches are empty. 6.0 did that too, it called includeTca()
in RootlineUtility to circumvent the same issue, the current patch
just solves the issue in a cleaner way. But still, this might lead
to problems if ext_tables.php code relies for example on the setup
done by determineID or the other code in between. The risk this
breaks something is pretty low, though.

Change-Id: I83e6367dbb4654fe0bf957bbe817fa6d5b5ea106
Resolves: #46156
Related: #45767
Releases: 6.1
Reviewed-on: https://review.typo3.org/19200
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/index_ts.php