[BUGFIX] Compressor: filemtime(): stat failed in Help > About TYPO3
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ResourceCompressor.php
index 1d0fe72..dd0ce68 100644 (file)
@@ -508,6 +508,10 @@ class ResourceCompressor {
                                return $file;
                        }
                }
+               // if the file is from a special TYPO3 internal directory, add the missing typo3/ prefix
+               if (is_file(PATH_site . TYPO3_mainDir . $filename)) {
+                       $filename = TYPO3_mainDir . $filename;
+               }
                // build the file path relatively to the PATH_site
                $backPath = str_replace(TYPO3_mainDir, '', $this->backPath);
                $file = str_replace($backPath, '', $filename);