[TASK] Check for typo3/ext only if global installation is allowed 91/41391/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 16 Jul 2015 06:17:22 +0000 (08:17 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 16 Jul 2015 07:13:36 +0000 (09:13 +0200)
Since the change of #67824 the directory typo3/ext is not created
automatically. The check for this directory in the Install Tool,
which is also shown in the reports module, should only be shown
if $GLOBALS['TYPO3_CONF_VARS']['EXT']['allowGlobalInstall'] is
set.

Change-Id: I6d004ac8c8a76d806d74db4622e7967424db4b2e
Resolves: #68196
Releases: master
Reviewed-on: http://review.typo3.org/41391
Reviewed-by: David Greiner <hallo@davidgreiner.de>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/install/Classes/Report/InstallStatusReport.php

index 464aca9..1bfcc45 100644 (file)
@@ -69,13 +69,17 @@ class InstallStatusReport implements \TYPO3\CMS\Reports\StatusProviderInterface
                        'typo3conf/' => 2,
                        'typo3conf/ext/' => 0,
                        'typo3conf/l10n/' => 0,
-                       TYPO3_mainDir . 'ext/' => -1,
                        'uploads/' => 2,
                        'uploads/pics/' => 0,
                        'uploads/media/' => 0,
                        $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] => -1,
                        $GLOBALS['TYPO3_CONF_VARS']['BE']['fileadminDir'] . '_temp_/' => 0,
                );
+
+               if ($GLOBALS['TYPO3_CONF_VARS']['EXT']['allowGlobalInstall']) {
+                       $checkWritable[TYPO3_mainDir . 'ext/'] = -1;
+               }
+
                foreach ($checkWritable as $relPath => $requirementLevel) {
                        if (!@is_dir(PATH_site . $relPath)) {
                                // If the directory is missing, try to create it