[TASK] Add tool-function to strip PATH_site-part of paths
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Module / ModuleLoader.php
index 9fa43e3..d27c1f9 100644 (file)
@@ -215,7 +215,7 @@ class ModuleLoader {
         */
        public function checkExtensionModule($name) {
                if (isset($this->absPathArray[$name])) {
-                       return rtrim(substr($this->absPathArray[$name], strlen(PATH_site)), '/');
+                       return rtrim(\TYPO3\CMS\Core\Utility\PathUtility::stripPathSitePrefix($this->absPathArray[$name]), '/');
                }
        }