Skip to content

Commit

Permalink
[BUGFIX] Have ImageManipulationWizard return HTMLResponse
Browse files Browse the repository at this point in the history
ImageManipulationWizard now returns a proper HTMLResponse instead of a JsonResponse.
Furthermore an missing import has been added in LocalizationController.

Resolves: #84005
Releases: master
Change-Id: Ie02cdaca84afa0c7fcde109e0fbbe5237ee69600
Reviewed-on: https://review.typo3.org/55856
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
  • Loading branch information
Mathias Schreiber authored and fsaris committed Feb 21, 2018
1 parent 928c481 commit 2f715fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -21,6 +21,7 @@
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Http\JsonResponse;
use TYPO3\CMS\Core\Http\Response;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down
Expand Up @@ -17,7 +17,7 @@

use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Http\JsonResponse;
use TYPO3\CMS\Core\Http\HtmlResponse;
use TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException;
use TYPO3\CMS\Core\Resource\ResourceFactory;
use TYPO3\CMS\Core\Utility\GeneralUtility;
Expand Down Expand Up @@ -71,9 +71,9 @@ public function getWizardAction(ServerRequestInterface $request): ResponseInterf
'cropVariants' => $queryParams['cropVariants']
];
$content = $this->templateView->renderSection('Main', $viewData);
return new JsonResponse($content);
return new HtmlResponse($content);
}
return new JsonResponse(null, 403);
return new HtmlResponse('', 403);
}

/**
Expand Down

0 comments on commit 2f715fa

Please sign in to comment.