[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / ViewHelpers / File / RelativePathViewHelper.php
index 7f3a6fe..4e19586 100644 (file)
@@ -45,6 +45,6 @@ class RelativePathViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractVi
         */
        public function render() {
                $absolutePath = $this->renderChildren();
-               return substr($absolutePath, strlen(PATH_site));
+               return \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($absolutePath);
        }
 }