[!!!][TASK] Use move placeholders as default in workspaces
[Packages/TYPO3.CMS.git] / typo3 / sysext / version / ext_tables.php
old mode 100755 (executable)
new mode 100644 (file)
index 11979f3..5d4ebd7
@@ -1,38 +1,8 @@
 <?php
-if (!defined ('TYPO3_MODE'))   die ('Access denied.');
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE=='BE')  {
-       $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][]=array(
-               'name' => 'tx_version_cm1',
-               'path' => t3lib_extMgm::extPath($_EXTKEY).'class.tx_version_cm1.php'
-       );
-
-       t3lib_extMgm::addModule('web','txversionM1','',t3lib_extMgm::extPath($_EXTKEY).'cm1/');
+if (TYPO3_MODE === 'BE' && !\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('workspaces')) {
+    $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array(
+        'name' => \TYPO3\CMS\Version\ClickMenu\VersionClickMenu::class,
+    );
 }
-
-
-
-
-/**
- * Table "sys_workspace":
- */
-$TCA['sys_workspace'] = array(
-       'ctrl' => array(
-               'label' => 'title',
-               'tstamp' => 'tstamp',
-               'title' => 'LLL:EXT:lang/locallang_tca.php:sys_workspace',
-               'adminOnly' => 1,
-               'rootLevel' => 1,
-               'delete' => 'deleted',
-               'iconfile' => 'sys_workspace.png',
-               'typeicon_classes' => array(
-                       'default' => 'mimetypes-x-sys_workspace'
-               ),
-               'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
-               'versioningWS_alwaysAllowLiveEdit' => true,
-               'dividers2tabs' => true
-       )
-);
-
-
-?>
\ No newline at end of file