From 7f6ec26fd434f6d4d25dc34572b9c3fa00603977 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Tue, 2 Aug 2016 16:53:35 +0200
Subject: [PATCH] [TASK] Cleanup $GLOBALS[PAGES_TYPES]

The global variable PAGES_TYPES contains keys and values
that are not evaluated anymore for a while and can be removed.

Resolves: #77360
Releases: master
Change-Id: I55ff42da2ea70787fb29837ad6b2a068f5a13068
Reviewed-on: https://review.typo3.org/49318
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
---
 typo3/sysext/core/ext_tables.php | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/typo3/sysext/core/ext_tables.php b/typo3/sysext/core/ext_tables.php
index 79c205509eb5..f8831cc34c46 100644
--- a/typo3/sysext/core/ext_tables.php
+++ b/typo3/sysext/core/ext_tables.php
@@ -4,37 +4,26 @@ defined('TYPO3_MODE') or die();
 /**
  * $GLOBALS['PAGES_TYPES'] defines the various types of pages (field: doktype) the system
  * can handle and what restrictions may apply to them.
- * Here you can set the icon and especially you can define which tables are
- * allowed on a certain pagetype (doktype)
+ * Here you can define which tables are allowed on a certain pagetype (doktype)
  * NOTE: The 'default' entry in the $GLOBALS['PAGES_TYPES'] array is the 'base' for all
  * types, and for every type the entries simply overrides the entries in the 'default' type!
  */
 $GLOBALS['PAGES_TYPES'] = array(
-    (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_LINK => array(),
-    (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SHORTCUT => array(),
     (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_BE_USER_SECTION => array(
-        'type' => 'web',
         'allowedTables' => '*'
     ),
-    (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_MOUNTPOINT => array(),
-    (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SPACER => array(
-        'type' => 'sys'
-    ),
     (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_SYSFOLDER => array(
         //  Doktype 254 is a 'Folder' - a general purpose storage folder for whatever you like.
         // In CMS context it's NOT a viewable page. Can contain any element.
-        'type' => 'sys',
         'allowedTables' => '*'
     ),
     (string)\TYPO3\CMS\Frontend\Page\PageRepository::DOKTYPE_RECYCLER => array(
         // Doktype 255 is a recycle-bin.
-        'type' => 'sys',
         'allowedTables' => '*'
     ),
     'default' => array(
-        'type' => 'web',
         'allowedTables' => 'pages,sys_category,sys_file_reference,sys_file_collection',
-        'onlyAllowedTables' => '0'
+        'onlyAllowedTables' => false
     ),
 );
 
-- 
GitLab