[TASK] Cleanup configuration handling

This commit is contained in:
Philipp Dieter
2021-09-22 13:15:20 +02:00
parent 7c1dae9b5d
commit 57a4e34eb9
2 changed files with 8 additions and 39 deletions

View File

@@ -204,9 +204,11 @@ class ActionController extends BaseController
*/
public function initializeAction()
{
$this->config = GeneralUtility::removeDotsFromTS(
$GLOBALS['TSFE']->config['config']
);
if ($GLOBALS['TSFE']->config['config']) {
$this->config = GeneralUtility::removeDotsFromTS(
$GLOBALS['TSFE']->config['config']
);
}
$this->pageType = GeneralUtility::_GP('type');
if (!is_numeric($this->pageType)) {
$this->pageType = 0;