[FEATURE] Disable Page Information option
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / layout / db_layout.php
index 0c93ff1..d14cf5d 100755 (executable)
@@ -263,8 +263,7 @@ class SC_db_layout {
                        'function' => array(
                                0 => $GLOBALS['LANG']->getLL('m_function_0'),
                                1 => $GLOBALS['LANG']->getLL('m_function_1'),
-                               2 => $GLOBALS['LANG']->getLL('m_function_2'),
-                               3 => $GLOBALS['LANG']->getLL('pageInformation'),
+                               2 => $GLOBALS['LANG']->getLL('m_function_2')
                        ),
                        'language' => array(
                                0 => $GLOBALS['LANG']->getLL('m_default')
@@ -315,6 +314,10 @@ class SC_db_layout {
                if ($this->modTSconfig['properties']['QEisDefault'])    ksort($this->MOD_MENU['function']);
                $this->MOD_MENU['function'] = t3lib_BEfunc::unsetMenuItems($this->modTSconfig['properties'],$this->MOD_MENU['function'],'menu.function');
 
+               if (!$this->modTSconfig['properties']['disablePageInformation']) {
+                       $this->MOD_MENU['function'][3] = $GLOBALS['LANG']->getLL('pageInformation');
+               }
+
                        // Remove QuickEdit as option if page type is not...
                if (!t3lib_div::inList($GLOBALS['TYPO3_CONF_VARS']['FE']['content_doktypes'] . ',6', $this->pageinfo['doktype'])) {
                        unset($this->MOD_MENU['function'][0]);