X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/063938393d793d7e4b0261da8fe709073a815ae9..b6d67a845cbeefe6f7f8c0873dd5073e4a637d6b:/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php diff --git a/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php b/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php index 595f74ff871..8ad2ca9d0ac 100644 --- a/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php +++ b/typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php @@ -14,12 +14,14 @@ namespace TYPO3\CMS\Install\Updates; * * The TYPO3 project - inspiring people to share! */ + use TYPO3\CMS\Core\Database\ConnectionPool; use TYPO3\CMS\Core\Registry; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Install\Updates\RowUpdater\ImageCropUpdater; use TYPO3\CMS\Install\Updates\RowUpdater\L10nModeUpdater; use TYPO3\CMS\Install\Updates\RowUpdater\RowUpdaterInterface; +use TYPO3\CMS\Install\Updates\RowUpdater\RteLinkSyntaxUpdater; /** * This is a generic updater to migrate content of TCA rows. @@ -49,8 +51,9 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate * @var array Single classes that may update rows */ protected $rowUpdater = [ -// L10nModeUpdater::class, + L10nModeUpdater::class, ImageCropUpdater::class, + RteLinkSyntaxUpdater::class, ]; /** @@ -90,12 +93,12 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate * Performs the configuration update. * * @param array &$databaseQueries Queries done in this update - not filled for this updater - * @param mixed &$customMessages Custom messages + * @param string &$customMessage Custom message * @return bool * @throws \Doctrine\DBAL\ConnectionException * @throws \Exception */ - public function performUpdate(array &$databaseQueries, &$customMessages) + public function performUpdate(array &$databaseQueries, &$customMessage) { $registry = GeneralUtility::makeInstance(Registry::class); @@ -131,11 +134,11 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate reset($listOfAllTables); $firstTable = current($listOfAllTables); $startPosition = $this->getStartPosition($firstTable); - foreach ($listOfAllTables as $table) { + foreach ($listOfAllTables as $key => $table) { if ($table === $startPosition['table']) { break; } else { - unset($listOfAllTables[$table]); + unset($listOfAllTables[$key]); } } @@ -288,7 +291,7 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate protected function getStartPosition(string $firstTable): array { $registry = GeneralUtility::makeInstance(Registry::class); - $startPosition = $registry->get('installUpdateRows', 'rowUpdaterPosition', []); + $startPosition = $registry->get('installUpdateRows', 'rowUpdatePosition', []); if (empty($startPosition)) { $startPosition = [ 'table' => $firstTable,