Skip to content
Snippets Groups Projects
Commit 22c3cb24 authored by Francois Suter's avatar Francois Suter Committed by Wouter Wolters
Browse files

[BUGFIX] Add advice to RTEmagic wizard

The update wizard that migrates RTE magic images relies on
sys_refindex for finding the magic images. There should be
a warning in the wizard description that users should be sure
their reference index is up to date.

Resolves: #49727
Releases: 6.1, 6.2
Change-Id: I7301a4a52174424655a76b58c7b7856f5f5209a2
Reviewed-on: https://review.typo3.org/22007
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
parent d22cea3b
Branches
Tags
No related merge requests found
......@@ -87,7 +87,17 @@ class RteMagicImagesUpdateWizard extends \TYPO3\CMS\Install\Updates\AbstractUpda
* @return boolean TRUE if an update is needed, FALSE otherwise
*/
public function checkForUpdate(&$description) {
$description = 'This update wizard goes through all magic images, located in ' . \TYPO3\CMS\Core\Utility\PathUtility::dirname($this->oldPrefix) . '., and moves the files to fileadmin/_migrated/RTE/.<br />It also moves the files from uploads/ to the fileadmin/_migrated/ path.';
$description = 'This update wizard goes through all magic images, located in ' . \TYPO3\CMS\Core\Utility\PathUtility::dirname($this->oldPrefix) . '., and moves the files to fileadmin/_migrated/RTE/.';
$description .= '<br />It also moves the files from uploads/ to the fileadmin/_migrated/ path.';
// Issue warning about sys_refindex needing to be up to date
/** @var \TYPO3\CMS\Core\Messaging\FlashMessage $message */
$message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
'This script bases itself on the references contained in the general reference index (sys_refindex). It is strongly advised to update it before running this wizard.',
'Updating the reference index',
\TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
);
$description .= $message->render();
// wizard is only available if oldPrefix set
if ($this->oldPrefix) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment