diff --git a/typo3/sysext/install/Classes/Updates/MediaceExtractionUpdate.php b/typo3/sysext/install/Classes/Updates/MediaceExtractionUpdate.php deleted file mode 100644 index e86a1105fc83..000000000000 --- a/typo3/sysext/install/Classes/Updates/MediaceExtractionUpdate.php +++ /dev/null @@ -1,103 +0,0 @@ - [ - 'title' => 'Media Content Element', - 'description' => 'The media functionality from TYPO3 6.2 and earlier can be found here.' - . ' This extension provides ContentObjects and Content Elements.', - 'versionString' => '7.6.3', - 'composerName' => 'friendsoftypo3/mediace', - ], - ]; - - /** - * Checks if an update is needed - * - * @param string &$description The description for the update - * @return bool Whether an update is needed (TRUE) or not (FALSE) - */ - public function checkForUpdate(&$description) - { - $needsExecution = true; - if ($this->isWizardDone() || ExtensionManagementUtility::isLoaded('mediace')) { - $needsExecution = false; - } else { - $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tt_content'); - $queryBuilder->getRestrictions()->removeAll() - ->add(GeneralUtility::makeInstance(DeletedRestriction::class)); - $numberOfRecords = $queryBuilder->count('uid') - ->from('tt_content') - ->where($queryBuilder->expr()->in( - 'CType', - $queryBuilder->createNamedParameter(['media', 'multimedia'], Connection::PARAM_STR_ARRAY) - )) - ->execute() - ->fetchColumn(0); - if ((int)$numberOfRecords === 0) { - $needsExecution = false; - } - } - - if ($needsExecution) { - $description = 'The extension "mediace" (Media Content Element) was extracted into the' - . ' TYPO3 Extension Repository. This update checks if media content elements are used' - . ' and downloads the TYPO3 Extension from the TER.'; - } - - return $needsExecution; - } - - /** - * Performs the database update if media CTypes are available. - * - * @param array &$databaseQueries Queries done in this update - * @param string &$customMessage Custom message - * @return bool - */ - public function performUpdate(array &$databaseQueries, &$customMessage) - { - $updateSuccessful = $this->installExtension($this->extensionKey, $customMessage); - if ($updateSuccessful) { - $this->markWizardAsDone(); - } - return $updateSuccessful; - } -} diff --git a/typo3/sysext/install/ext_localconf.php b/typo3/sysext/install/ext_localconf.php index 4dc8c9824012..4dafd9eb5fb9 100644 --- a/typo3/sysext/install/ext_localconf.php +++ b/typo3/sysext/install/ext_localconf.php @@ -14,7 +14,6 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][\TYPO3\CMS\Install\Updates\WorkspacesNotificationSettingsUpdate::class] = \TYPO3\CMS\Install\Updates\WorkspacesNotificationSettingsUpdate::class; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['textmediaAssets'] = \TYPO3\CMS\Install\Updates\MigrateMediaToAssetsForTextMediaCe::class; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['compatibility6Extension'] = \TYPO3\CMS\Install\Updates\Compatibility6ExtractionUpdate::class; -$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['mediaceExtension'] = \TYPO3\CMS\Install\Updates\MediaceExtractionUpdate::class; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['openidExtension'] = \TYPO3\CMS\Install\Updates\OpenidExtractionUpdate::class; $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);