[!!!][TASK] Move pages.url_scheme to compatibility7
[Packages/TYPO3.CMS.git] / typo3 / sysext / compatibility7 / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')) {
5 // register pibase plugin
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
7 'indexed_search',
8 'setup',
9 trim('
10 plugin.tx_indexedsearch = USER_INT
11 plugin.tx_indexedsearch.userFunc = ' . \TYPO3\CMS\Compatibility7\Controller\SearchFormController::class . '->main
12 ')
13 );
14 // add default rendering for pibase plugin
15 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
16 'indexed_search',
17 'setup',
18 'tt_content.list.20.indexed_search =< plugin.tx_indexedsearch',
19 'defaultContentRendering'
20 );
21 }
22
23 // Enable pages.url_scheme functionality again
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typolinkProcessing']['typolinkModifyParameterForPageLinks']['compatibility7_urlscheme']
25 = \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class;
26
27 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['fetchPageId-PostProcessing']['compatibility7_urlscheme']
28 = \TYPO3\CMS\Compatibility7\Hooks\EnforceUrlSchemeHook::class . '->redirectIfUrlSchemeDoesNotMatch';