[BUGFIX] Extension Upload ends in PHP Error
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 if (TYPO3_MODE === 'BE') {
7 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
8 'TYPO3.CMS.' . $_EXTKEY,
9 'tools',
10 'extensionmanager', '', array(
11 'List' => 'index,ter,showAllVersions,distributions',
12 'Action' => 'toggleExtensionInstallationState,removeExtension,downloadExtensionZip,downloadExtensionData',
13 'Configuration' => 'showConfigurationForm,save',
14 'Download' => 'checkDependencies,installFromTer,installDistribution,updateExtension,updateCommentForUpdatableVersions',
15 'UpdateScript' => 'show',
16 'UpdateFromTer' => 'updateExtensionListFromTer',
17 'UploadExtensionFile' => 'form,extract',
18 'Distribution' => 'welcome'
19 ),
20 array(
21 'access' => 'admin',
22 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Icons/module.png',
23 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
24 )
25 );
26
27 // Register extension status report system
28 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Extension Manager'][] =
29 'TYPO3\\CMS\\Extensionmanager\\Report\\ExtensionStatus';
30
31 // Register specific icon for update script button
32 \TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(
33 array(
34 'update-script' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/Icons/ExtensionUpdateScript.png'
35 ),
36 $_EXTKEY
37 );
38 }