Skip to content

Commit

Permalink
[BUGFIX] Don't import PHP class in ext_localconf.php
Browse files Browse the repository at this point in the history
Resolves: #89970
Releases: master
Change-Id: I5b7e22c853993e7434c086c22a3898eefbe07899
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62694
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
  • Loading branch information
andreaskienast authored and ohader committed Dec 17, 2019
1 parent 22dd17f commit 6ea5b19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions typo3/sysext/redirects/ext_localconf.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

defined('TYPO3_MODE') or die();

// Rebuild cache in DataHandler on changing / inserting / adding redirect records
Expand Down Expand Up @@ -29,6 +27,6 @@
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/backend.php']['constructPostProcess'][]
= \TYPO3\CMS\Redirects\Hooks\BackendControllerHook::class . '->registerClientSideEventHandler';

if (ExtensionManagementUtility::isLoaded('reports')) {
if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('reports')) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['LLL:EXT:redirects/Resources/Private/Language/locallang_reports.xlf:statusProvider'][] = \TYPO3\CMS\Redirects\Report\Status\RedirectStatus::class;
}

0 comments on commit 6ea5b19

Please # to comment.