From 0d0e79c00d302c07a56e83a8b942844c51334bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Thu, 17 Oct 2013 09:34:58 +0000 Subject: [PATCH] fix typo in comment + raise error if rename fails --- bureau/class/m_bro.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 0a545479..17da917d 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -103,7 +103,7 @@ class m_bro { $file = basename($dir); $dir = dirname($dir); $dir=realpath($root."/".$dir); - // verifier que le repertoire est dans le home de l'usgaer + // verifier que le repertoire est dans le home de l'usager if (substr($dir,0,strlen($root))!=$root) { return false; } @@ -486,7 +486,8 @@ class m_bro { for ($i=0;$iraise("bro", "error renaming $old/$d[$i] -> $new/$d[$i]"); } } return true;