[BUGFIX] Ensure Install Tool is not using a deprecated property 27/52527/3
authorBenni Mack <benni@typo3.org>
Thu, 20 Apr 2017 18:15:32 +0000 (20:15 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 20 Apr 2017 23:16:07 +0000 (01:16 +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/52527
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/install/Classes/Controller/Action/Tool/TestSetup.php

index 00b47c2..00afae9 100644 (file)
@@ -1958,7 +1958,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);
         }