*
* 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.
* @var array Single classes that may update rows
*/
protected $rowUpdater = [
-// L10nModeUpdater::class,
+ L10nModeUpdater::class,
ImageCropUpdater::class,
+ RteLinkSyntaxUpdater::class,
];
/**
* 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);
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]);
}
}
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,