diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index 53a530497..6122f2580 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -1314,8 +1314,10 @@ EOF if ($aDirs !== false) { sort($aDirs); - - return array_pop($aDirs); + // Windows: there is a backslash at the end (though the path is made of slashes!!!) + $sDir = basename(array_pop($aDirs)); + $sRes = $sBaseDir.'/'.$sDir; + return $sRes; } return false; }