Setup: Source dir recorded with a trailing backslash under windows

SVN:trunk[2829]
This commit is contained in:
Romain Quetiez
2013-08-22 11:57:31 +00:00
parent 2893d16d58
commit 75eb44912f

View File

@@ -1314,8 +1314,10 @@ EOF
if ($aDirs !== false) if ($aDirs !== false)
{ {
sort($aDirs); sort($aDirs);
// Windows: there is a backslash at the end (though the path is made of slashes!!!)
return array_pop($aDirs); $sDir = basename(array_pop($aDirs));
$sRes = $sBaseDir.'/'.$sDir;
return $sRes;
} }
return false; return false;
} }