ksieren 2 éve
szülő
commit
c2ef321b60
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      Classes/Hooks/TCE/TCEMainHook.php

+ 2 - 3
Classes/Hooks/TCE/TCEMainHook.php

@@ -233,8 +233,7 @@ class TCEMainHook
         $this->log($pid . " slugData empty");
         continue;
       }
-
-      $qrfilename = '/var/www/html/typo3temp/' . mt_rand(0, 0xffffff) . '_' . mt_rand(0, 0xffffff) . '.svg';
+      $qrfilename = '/var/www/html/public/typo3temp/' . mt_rand(0, 0xffffff) . '_' . mt_rand(0, 0xffffff) . '.svg';
       \QRcode::svg("https://abi.de" . $slugData, $qrfilename);
       $qrsvg = file_get_contents($qrfilename);
       unlink($qrfilename);
@@ -2526,6 +2525,6 @@ class TCEMainHook
     if (!$isString) {
       $msg = json_encode($msg, JSON_PRETTY_PRINT);
     }
-    file_put_contents('/var/www/html/typo3temp/debug.log', $msg . PHP_EOL, FILE_APPEND);
+      file_put_contents('/var/www/html/public/typo3temp/debug.log', $msg . PHP_EOL, FILE_APPEND);
   }
 }