[TASK] Update TYPO3 version to TYPO3 8.4-dev
[Packages/TYPO3.CMS.git] / typo3 / sysext / wizard_sortpages / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index 507cd74..9e7b539
@@ -1,9 +1,16 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
+defined('TYPO3_MODE') or die();
+
+if (TYPO3_MODE === 'BE') {
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
+        'web_func',
+        \TYPO3\CMS\WizardSortpages\View\SortPagesWizardModuleFunction::class,
+        null,
+        'LLL:EXT:wizard_sortpages/Resources/Private/Language/locallang.xlf:wiz_sort'
+    );
+
+    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
+        '_MOD_web_func',
+        'EXT:wizard_sortpages/Resources/Private/Language/locallang_csh.xlf'
+    );
 }
-if (TYPO3_MODE == 'BE') {
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_func', 'TYPO3\\CMS\\WizardSortPages\\View\\SortPagesWizardModuleFunction', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_wizardsortpages_webfunc_2.php', 'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort', 'wiz');
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xml');
-}
-?>
\ No newline at end of file