[BUGFIX] Register FileBrowser for file_reference mode
[Packages/TYPO3.CMS.git] / typo3 / sysext / recordlist / ext_localconf.php
index cfbf3fb..0d77305 100644 (file)
@@ -2,38 +2,39 @@
 defined('TYPO3_MODE') or die();
 
 // Register element browsers
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['db'] =  \TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::class;
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file'] =  \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['folder'] =  \TYPO3\CMS\Recordlist\Browser\FolderBrowser::class;
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['db'] = \TYPO3\CMS\Recordlist\Browser\DatabaseBrowser::class;
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['file_reference'] = \TYPO3\CMS\Recordlist\Browser\FileBrowser::class;
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ElementBrowsers']['folder'] = \TYPO3\CMS\Recordlist\Browser\FolderBrowser::class;
 
 // Register default link handlers
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
     TCEMAIN.linkHandler {
         page {
             handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\PageLinkHandler
-            label = LLL:EXT:lang/Resources/Private/Language/locallang_browse_links.xlf:page
+            label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:page
         }
         file {
             handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FileLinkHandler
-            label = LLL:EXT:lang/Resources/Private/Language/locallang_browse_links.xlf:file
+            label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:file
             displayAfter = page
             scanAfter = page
         }
         folder {
             handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\FolderLinkHandler
-            label = LLL:EXT:lang/Resources/Private/Language/locallang_browse_links.xlf:folder
+            label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:folder
             displayAfter = file
             scanAfter = file
         }
         url {
             handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\UrlLinkHandler
-            label = LLL:EXT:lang/Resources/Private/Language/locallang_browse_links.xlf:extUrl
+            label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:extUrl
             displayAfter = folder
             scanAfter = mail
         }
         mail {
             handler = TYPO3\\CMS\\Recordlist\\LinkHandler\\MailLinkHandler
-            label = LLL:EXT:lang/Resources/Private/Language/locallang_browse_links.xlf:email
+            label = LLL:EXT:recordlist/Resources/Private/Language/locallang_browse_links.xlf:email
             displayAfter = url
         }
     }