diff --git a/.gitattributes b/.gitattributes index 4fdecee0..fbbf2c36 100644 --- a/.gitattributes +++ b/.gitattributes @@ -226,7 +226,6 @@ bureau/admin/js/jquery_ui/js/jquery.ui.datepicker-es.js -text bureau/admin/js/jquery_ui/js/jquery.ui.datepicker-fr.js -text bureau/admin/js/prototype.js -text bureau/admin/js/rico.js -text -bureau/admin/js/wz_dragdrop.js -text bureau/admin/login.php -text bureau/admin/logo.png -text bureau/admin/logo2.png -text diff --git a/bureau/admin/bro_editor.php b/bureau/admin/bro_editor.php index bb1062dd..0d79d571 100644 --- a/bureau/admin/bro_editor.php +++ b/bureau/admin/bro_editor.php @@ -40,27 +40,37 @@ if ($cancel) { exit(); } if ($saveret) { - $bro->Save($editfile,$R,$texte); - $error=sprintf(_("Your file %s has been saved"),$editfile)." (".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s")).")"; - include("bro_main.php"); - exit(); + if ($bro->Save($editfile,$R,$texte)) { + $error=sprintf(_("Your file %s has been saved"),$editfile)." (".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s")).")"; + } else { + $error=$err->errstr(); + } + include("bro_main.php"); + exit(); } if ($save) { - $bro->Save($editfile,$R,$texte); - $error=sprintf(_("Your file %s has been saved"),$editfile)." (".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s")).")"; + if ($bro->Save($editfile,$R,$texte)) { + $error=sprintf(_("Your file %s has been saved"),$editfile)." (".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s")).")"; + } else { + $error=$err->errstr(); + } } include_once("head.php"); ?>
-$error
"; ?>
+$error