[FEATURE] Remove invalid/unused FAL TCA config
authorIngmar Schlecht <ingmar@typo3.org>
Thu, 17 May 2012 10:46:03 +0000 (12:46 +0200)
committerIngmar Schlecht <ingmar@typo3.org>
Thu, 17 May 2012 13:39:17 +0000 (15:39 +0200)
Change-Id: I255e5067c3d2608870e4b35d35faf305af0f6b22
Releases: 6.0
Resolves: #37250
Reviewed-on: http://review.typo3.org/11269
Reviewed-by: Ingmar Schlecht
Tested-by: Ingmar Schlecht
t3lib/class.t3lib_extmgm.php
t3lib/stddb/tca_sys_file_reference.php
typo3/sysext/cms/tbl_tt_content.php

index 3d966be..f456c94 100644 (file)
@@ -529,15 +529,6 @@ final class t3lib_extMgm {
                        ),
                        'foreign_label' => 'uid_local',
                        'foreign_selector' => 'uid_local',
-                       'foreign_selector_fieldTcaOverride' => array(
-                               'config' => array (
-                                       'filter' => array(
-                                               'fileType' =>  array(
-                                                       'allowed' => array(),
-                                               ),
-                                       ),
-                               ),
-                       ),
                        'appearance' => array(
                                'useSortable' => TRUE,
                                'headerThumbnail' => 'uid_local',
index 2fa3fc7..4073649 100644 (file)
@@ -28,44 +28,6 @@ $TCA['sys_file_reference'] = array (
                                'maxitems' => 1,
                                'minitems' => 0,
                                'allowed' => 'sys_file',
-                               'filter' => array(
-
-                                       /*
-
-                                       Documentation:
-                                               The filter has two main items "fileType" and "fileExtension".
-                                               Each of them as the keys "allowed" and "disallowed".
-
-                                               => fileType can contain types from the t3lib_file_File::FILETYPE_* class constants
-                                               => fileExtension can contain file extensions like jpg, bmp, etc.
-
-                                               The fileType directive is always processed first, then fileExtension.
-                                               Disallowed takes precedence over allowed.
-                                               If something is specified to be disallowed, everything else is assumed to be allowed.
-                                               If something is specified to be allowed, everything else is assumed to be disallowed.
-
-                                               If no filter is set, everything is assumed to be allowed.
-
-                                       Example:
-
-                                       // Enable only Images or Videos, but exclude "*.bmp" files.
-
-                                       'fileType' => array(
-                                               'allowed' => array(t3lib_file_File::FILETYPE_IMAGE, t3lib_file_File::FILETYPE_VIDEO),
-                                               'disallowed' => array(),
-                                       ),
-                                       'fileExtension' =>  array(
-                                               'allowed' => array(),
-                                               'disallowed' => array('bmp'),
-                                       ),
-
-                                       */
-
-                                       'fileType' => array(
-                                               'allowed' => array(),
-                                               'disallowed' => array(),
-                                       ),
-                               ), // TODO: Verify that this filter is respected in both TCEForms/ElementBrowser and TCEMain
                        ),
                ),
                'uid_foreign' => array (
index a9de958..57f6c4f 100755 (executable)
@@ -719,17 +719,6 @@ $TCA['tt_content'] = array(
                                                        --palette--;;filePalette',
                                        ),
                                ),
-                               'foreign_selector_fieldTcaOverride' => array(
-                                       'config' => array(
-                                               'filter' => array(
-                                                       'fileType' =>  array(
-                                                               'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
-                                                       )
-                                               )
-                                       )
-                               ),
-                               'maxitems' => '200',
-                               'minitems' => '0',
                        )),
                ),
                'imagewidth' => array(
@@ -1458,16 +1447,7 @@ $TCA['tt_content'] = array(
                                'appearance' => array(
                                        'createNewRelationLinkTitle' => 'LLL:EXT:cms/locallang_ttc.xlf:media.addFileReference',
                                ),
-                               'foreign_selector_fieldTcaOverride' => array(
-                                       'config' => array(
-                                               'filter' => array(
-                                                       'fileType' =>  array(
-                                                               'disallowed' => PHP_EXTENSIONS_DEFAULT
-                                                       )
-                                               )
-                                       )
-                               ),
-                       )),
+                       ))
                ),
                'file_collections' => array(
                        'label' => 'LLL:EXT:cms/locallang_ttc.xlf:file_collections',