[BUGFIX] Fix path when writing AdditionalConfiguration.php 71/58571/2
authorAlexander Stehlik <alexander.stehlik@gmail.com>
Wed, 3 Oct 2018 19:08:29 +0000 (21:08 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 11 Oct 2018 10:04:13 +0000 (12:04 +0200)
Use the getAdditionalConfigurationFileLocation() method to
determine the path to the file.

Releases: master
Resolves: #86561
Change-Id: I61b52e8eeb99ab2575f75025712a17f4c8ea4a40
Reviewed-on: https://review.typo3.org/58571
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tomas Norre Mikkelsen <tomasnorre@gmail.com>
Reviewed-by: Rune Piper <kontakt@runepiper.de>
Tested-by: Rune Piper <kontakt@runepiper.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/core/Classes/Configuration/ConfigurationManager.php

index 1da754b..18e391d 100644 (file)
@@ -393,7 +393,7 @@ class ConfigurationManager
     public function writeAdditionalConfiguration(array $additionalConfigurationLines)
     {
         return GeneralUtility::writeFile(
-            Environment::getPublicPath() . '/' . $this->additionalConfigurationFile,
+            $this->getAdditionalConfigurationFileLocation(),
             '<?php' . LF .
                 implode(LF, $additionalConfigurationLines) . LF
         );