[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / ModuleMenuView.php
index 18ebcb3..2f46de4 100644 (file)
@@ -314,7 +314,7 @@ class ModuleMenuView {
         */
        protected function getModuleIconRelative($iconFilename) {
                if (GeneralUtility::isAbsPath($iconFilename)) {
-                       $iconFilename = '../' . substr($iconFilename, strlen(PATH_site));
+                       $iconFilename = '../' . \TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($iconFilename);
                }
                return $this->backPath . $iconFilename;
        }