[BUGFIX] Install Tool: Show titles of failed image tests 96/25396/2
authorSebastian Michaelsen <sebastian.michaelsen@t3seo.de>
Thu, 14 Nov 2013 09:13:50 +0000 (10:13 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Thu, 14 Nov 2013 12:39:23 +0000 (13:39 +0100)
"Test image formats" tries to convert different media types
to JPG. If one of these conversions fails, you will get an
error message but no hint about what media type failed to convert.

Change-Id: Ie35c7e3529064c99cb8b3ef7d6eb542142b58a56
Resolves: #53632
Releases: 6.2
Reviewed-on: https://review.typo3.org/25396
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Dan Untenzu
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/install/Classes/Controller/Action/Tool/TestSetup.php

index b1df530..9686775 100644 (file)
@@ -204,8 +204,8 @@ class TestSetup extends Action\AbstractAction implements Action\ActionInterface
                                $inputFile = $this->imageBasePath . 'TestInput/Test.' . $formatToTest;
                                $imageProcessor->imageMagickConvert_forceFileNameBody = uniqid('read') . '-' . $formatToTest;
                                $imResult = $imageProcessor->imageMagickConvert($inputFile, 'jpg', '170', '', '', '', array(), TRUE);
+                               $result['title'] = 'Read ' . $formatToTest;
                                if ($imResult !== NULL) {
-                                       $result['title'] = 'Read ' . $formatToTest;
                                        $result['outputFile'] = $imResult[3];
                                        $result['referenceFile'] = $this->imageBasePath . 'TestReference/Read-' . $formatToTest . '.jpg';
                                        $result['command'] = $imageProcessor->IM_commands;