[BUGFIX] RTE-API: correct check for backpath in writeTemporaryFile
[Packages/TYPO3.CMS.git] / typo3 / sysext / rtehtmlarea / Classes / RteHtmlAreaApi.php
index 76baf3b..0676d3d 100644 (file)
@@ -320,7 +320,7 @@ abstract class RteHtmlAreaApi
                 throw new \RuntimeException($failure, 1294585668);
             }
         }
-        if (isset($GLOBALS['TSFE'])) {
+        if ($this->isFrontend() || $this->isFrontendEditActive()) {
             $fileName = $relativeFilename;
         } else {
             $fileName = '../' . $relativeFilename;