Skip to content
Snippets Groups Projects
Commit a1c299e4 authored by Nicole Cordes's avatar Nicole Cordes Committed by Helmut Hummel
Browse files

[BUGFIX] Prevent extension download if disabled

If you disable extension installation in Install Tool (disable all
[EXT][allow*Install] options) a weird error is thrown if you try to
install an extension anyway. This patch hides the "Import and Install"
button of no install path is available.

Resolves: #58800
Releases: master, 6.2
Change-Id: I057e7e4d6a8360638c60427b3855142ab7df2147
Reviewed-on: http://review.typo3.org/38093


Reviewed-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Reviewed-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
Tested-by: default avatarHelmut Hummel <helmut.hummel@typo3.org>
parent 3ad75874
Branches
Tags
No related merge requests found
......@@ -37,6 +37,9 @@ class DownloadExtensionViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\FormViewH
*/
public function render(\TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension) {
$installPaths = \TYPO3\CMS\Extensionmanager\Domain\Model\Extension::returnAllowedInstallPaths();
if (empty($installPaths)) {
return '';
}
$pathSelector = '<ul class="is-hidden">';
foreach ($installPaths as $installPathType => $installPath) {
$pathSelector .= '<li>
......
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