[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Utility / FileHandlingUtility.php
index 3c93514..90b2c34 100644 (file)
@@ -293,7 +293,7 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface {
         * @return string
         */
        protected function getRelativePath($absolutePath) {
-               return substr($absolutePath, strlen(PATH_site));
+               return \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($absolutePath);
        }
 
        /**