[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / DebugUtility.php
index 53c9ed8..6b15a22 100644 (file)
@@ -210,7 +210,7 @@ class DebugUtility {
                        $pathFragment = $dat['class'] . $dat['type'] . $dat['function'];
                        // add the path of the included file
                        if (in_array($dat['function'], array('require', 'include', 'require_once', 'include_once'))) {
-                               $pathFragment .= '(' . substr($dat['args'][0], strlen(PATH_site)) . '),' . substr($dat['file'], strlen(PATH_site));
+                               $pathFragment .= '(' . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($dat['args'][0]) . '),' . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($dat['file']);
                        }
                        $path[] = $pathFragment . '#' . $dat['line'];
                }