fix weird case where user root is not found

This commit is contained in:
Antoine Beaupr�� 2014-11-28 21:54:10 +00:00
parent 542c0f59b2
commit eedb851a50
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ class m_bro {
$root_alternc=$root ;
// Passage du root en chemin rel (diffrent avec un lien)
$root=realpath($root) ;
if (! $root=realpath($root)) {
// Guillaume: it needed to work.. if file doesn't exist it need to crash
// gently
$root=$root_alternc;
}
// separer le chemin entre le repertoire et le fichier
$file=basename($dir);
$dir=dirname($dir);