[TASK] Remove "Disable Popup Context Menus" option
authorSteffen Gebert <steffen.gebert@typo3.org>
Sat, 17 Dec 2011 11:27:56 +0000 (12:27 +0100)
committerTolleiv Nietsch <info@tolleiv.de>
Sat, 24 Mar 2012 09:54:48 +0000 (10:54 +0100)
This option in the User Settings is totally useless, as there aren't
any troubles with modern browsers and this feature anymore.

Change-Id: I27f1796b8e787aec9a673eaf3220115054711000
Resolves: #24584
Releases: 4.8
Reviewed-on: http://review.typo3.org/7334
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/class.t3lib_beuserauth.php
typo3/sysext/recordlist/mod1/index.php
typo3/sysext/setup/ext_tables.php
typo3/sysext/sys_action/task/class.tx_sysaction_task.php
typo3/sysext/t3editor/res/jslib/parse_typoscript/tokenizetyposcript.js
typo3/template.php

index 6889f22..8cec43e 100644 (file)
@@ -100,7 +100,6 @@ class t3lib_beUserAuth extends t3lib_userAuthGroup {
                'edit_RTE' => '1',
                'edit_docModuleUpload' => '1',
                'enableFlashUploader' => '1',
-               'disableCMlayers' => 0,
                'navFrameWidth' => '', // Default is 245 pixels
                'navFrameResizable' => 0,
                'resizeTextareas' => 1,
index eb4ee16..f3c14b8 100644 (file)
@@ -248,7 +248,7 @@ class SC_db_list {
                        // This flag will prevent the clipboard panel in being shown.
                        // It is set, if the clickmenu-layer is active AND the extended view is not enabled.
                $dblist->dontShowClipControlPanels = $GLOBALS['CLIENT']['FORMSTYLE'] && !$this->MOD_SETTINGS['bigControlPanel']
-                       && $dblist->clipObj->current=='normal' && !$GLOBALS['BE_USER']->uc['disableCMlayers']
+                       && $dblist->clipObj->current=='normal'
                        && !$this->modTSconfig['properties']['showClipControlPanelsDespiteOfCMlayers'];
 
 
index 2580150..65f7cae 100755 (executable)
@@ -79,11 +79,6 @@ $GLOBALS['TYPO3_USER_SETTINGS'] = array(
                        'label' => 'LLL:EXT:setup/mod/locallang.xml:edit_docModuleUpload',
                        'csh' => 'edit_docModuleUpload',
                ),
-               'disableCMlayers' => array(
-                       'type' => 'check',
-                       'label' => 'LLL:EXT:setup/mod/locallang.xml:disableCMlayers',
-                       'csh' => 'disableCMlayers',
-               ),
                'copyLevels' => array(
                        'type' => 'text',
                        'label' => 'LLL:EXT:setup/mod/locallang.xml:copyLevels',
@@ -129,7 +124,7 @@ $GLOBALS['TYPO3_USER_SETTINGS'] = array(
        ),
        'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xml:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
                        --div--;LLL:EXT:setup/mod/locallang.xml:opening,startModule,thumbnailsByDefault,titleLen,
-                       --div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,enableFlashUploader,resizeTextareas,resizeTextareas_Flexible,resizeTextareas_MaxHeight,disableCMlayers,copyLevels,recursiveDelete,
+                       --div--;LLL:EXT:setup/mod/locallang.xml:editFunctionsTab,edit_RTE,edit_wideDocument,edit_docModuleUpload,enableFlashUploader,resizeTextareas,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,
                        --div--;LLL:EXT:setup/mod/locallang.xml:adminFunctions,simulate,debugInWindow'
 
 );
index ecf6b66..2c7510d 100644 (file)
@@ -951,7 +951,7 @@ class tx_sysaction_task implements tx_taskcenter_Task {
                        $dblist->counter++;
                        $dblist->MOD_MENU = array('bigControlPanel' => '', 'clipBoard' => '', 'localization' => '');
                        $dblist->modTSconfig = $this->taskObject->modTSconfig;
-                       $dblist->dontShowClipControlPanels = $CLIENT['FORMSTYLE'] && !$this->taskObject->MOD_SETTINGS['bigControlPanel'] && $dblist->clipObj->current=='normal' && !$GLOBALS['BE_USER']->uc['disableCMlayers'] && !$this->modTSconfig['properties']['showClipControlPanelsDespiteOfCMlayers'];
+                       $dblist->dontShowClipControlPanels = $CLIENT['FORMSTYLE'] && !$this->taskObject->MOD_SETTINGS['bigControlPanel'] && $dblist->clipObj->current=='normal' && !$this->modTSconfig['properties']['showClipControlPanelsDespiteOfCMlayers'];
 
                                // Initialize the listing object, dblist, for rendering the list:
                        $this->pointer = t3lib_utility_Math::forceIntegerInRange(t3lib_div::_GP('pointer'), 0, 100000);
index 4434bd6..7b0a99a 100644 (file)
@@ -302,7 +302,6 @@ var typoscriptWords = {
        'disableBigButtons': 'reserved',
        'disableCacheSelector': 'reserved',
        'disableCharsetHeader': 'reserved',
-       'disableCMlayers': 'reserved',
        'disabled': 'reserved',
        'disableDelete': 'reserved',
        'disableDocModuleInAB': 'reserved',
@@ -1671,7 +1670,6 @@ var typoscriptWords = {
        'disableBigButtons': 'reserved',
        'disableCacheSelector': 'reserved',
        'disableCharsetHeader': 'reserved',
-       'disableCMlayers': 'reserved',
        'disabled': 'reserved',
        'disableDelete': 'reserved',
        'disableDocModuleInAB': 'reserved',
index d41a0cd..e85f2e4 100644 (file)
@@ -354,8 +354,10 @@ class template {
         * Use this to test if click-menus (context sensitive menus) can and should be displayed in the backend.
         *
         * @return      boolean
+        * @deprecated since TYPO3 4.7, will be removed in TYPO3 4.9 - This function makes no sense anymore
         */
        function isCMlayers()   {
+               t3lib_div::logDeprecatedFunction();
                return !$GLOBALS['BE_USER']->uc['disableCMlayers'] && $GLOBALS['CLIENT']['FORMSTYLE'] && !($GLOBALS['CLIENT']['SYSTEM']=='mac' && $GLOBALS['CLIENT']['BROWSER']=='Opera');
        }