TYPO3-Initiatives / adminpanel-extended

TYPO3 Extension Adminpanel Extended
GNU General Public License v3.0
6 stars 2 forks source link

[BUGFIX] Extract database modification hook #1

Closed KamiYang closed 6 years ago

KamiYang commented 6 years ago

Tough the hook was part of the module class, it caused an exception because $GLOBALS['BE_USER'] was not available.

The exception was thrown because TYPO3\CMS\Adminpanel\Modules\AbstractModule uses $GLOBALS['BE_USER'] in its __constructor. The initialization of $GLOBALS['BE_USER'] has been changed and moved after the initialization of $GLOBALS['TSFE'].

This patch extracts the hook so the module does not need to be initialized that early.

susannemoog commented 6 years ago

Have just missed committing something, will fix that in a minute.