[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / reports / Classes / Report / Status / ConfigurationStatus.php
index 78e47e3..a81cd09 100644 (file)
@@ -252,7 +252,7 @@ class ConfigurationStatus implements \TYPO3\CMS\Reports\StatusProviderInterface
         */
        protected function getDeprecationLogFileLink() {
                $logFile = GeneralUtility::getDeprecationLogFileName();
-               $relativePath = GeneralUtility::resolveBackPath($this->backPath . substr($logFile, strlen(PATH_site)));
+               $relativePath = GeneralUtility::resolveBackPath($this->backPath . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($logFile));
                $link = '<a href="' . $relativePath . '">' . $logFile . '</a>';
                return $link;
        }