[BUGFIX] Add more entropy to uniqid
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / ext_tables.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'BE') {
5 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'layout', 'top', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'layout/');
6 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xlf');
7 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xlf');
8 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
9 'web_info',
10 'TYPO3\\CMS\\Frontend\\Controller\\PageInformationController',
11 NULL,
12 'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_page'
13 );
14 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
15 'web_info',
16 'TYPO3\\CMS\\Frontend\\Controller\\TranslationStatusController',
17 NULL,
18 'LLL:EXT:cms/locallang_tca.xlf:mod_tx_cms_webinfo_lang'
19 );
20 }
21 // Add allowed records to pages:
22 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
23
24 if (!function_exists('user_sortPluginList')) {
25 function user_sortPluginList(array &$parameters) {
26 usort(
27 $parameters['items'],
28 function ($item1, $item2) {
29 return strcasecmp($GLOBALS['LANG']->sL($item1[0]), $GLOBALS['LANG']->sL($item2[0]));
30 }
31 );
32 }
33 }