[BUGFIX] Inititialize tca record icons earlier 67/43567/2
authorFrank Nägler <frank.naegler@typo3.org>
Fri, 25 Sep 2015 12:04:36 +0000 (14:04 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 25 Sep 2015 14:19:52 +0000 (16:19 +0200)
Resolves: #70114
Releases: master
Change-Id: Ib6cdd6bd61a65e9018bd55ea4055456348d1251a
Reviewed-on: http://review.typo3.org/43567
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index ea7f7fb..b668b5b 100644 (file)
@@ -1882,6 +1882,9 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
        * The constructor
        */
        public function __construct() {
+               if (!$this->tcaInitialized && !empty($GLOBALS['TCA'])) {
+                       $this->registerTCAIcons();
+               }
                $this->registerFlags();
        }