[BUGFIX] Ensure Install Tool is not using a deprecated property 36/52536/2
authorBenni Mack <benni@typo3.org>
Thu, 20 Apr 2017 18:15:32 +0000 (20:15 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 20 Apr 2017 23:26:51 +0000 (01:26 +0200)
The install tool still uses a variable which is deprecated.

Instead, the install tool already defines absPrefix as PATH_site which
is the way to go here.

Resolves: #80690
Releases: master, 8.7
Change-Id: Ib87e0a91e6e7b2151e019881dd137a0b011ae488
Reviewed-on: https://review.typo3.org/52536
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/install/Classes/Controller/Action/Tool/TestSetup.php

index e4050ae..4d9e028 100644 (file)
@@ -1980,7 +1980,7 @@ class GraphicalFunctions
     public function randomName()
     {
         GeneralUtility::mkdir_deep(PATH_site . 'typo3temp/var/transient/');
-        return 'typo3temp/var/transient/' . md5(uniqid('', true));
+        return PATH_site . 'typo3temp/var/transient/' . md5(uniqid('', true));
     }
 
     /**
index da31ef2..29ab8c6 100644 (file)
@@ -701,7 +701,7 @@ class TestSetup extends Action\AbstractAction
      */
     protected function getImagesPath(GraphicalFunctions $imageProcessor)
     {
-        $imagePath = $imageProcessor->tempPath . 'assets/images/';
+        $imagePath = $imageProcessor->absPrefix . 'typo3temp/assets/images/';
         if (!is_dir($imagePath)) {
             GeneralUtility::mkdir_deep($imagePath);
         }