[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 afc3064..9e7b539
@@ -1,14 +1,16 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::insertModuleFunction(
-               'web_func',
-               'tx_wizardsortpages_webfunc_2',
-               t3lib_extMgm::extPath($_EXTKEY).'class.tx_wizardsortpages_webfunc_2.php',
-               'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort',
-               'wiz'
-       );
-       t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xml');
+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'
+    );
 }
-?>
\ No newline at end of file