fix some bugs

This commit is contained in:
Nicolas Le Goff
2012-08-27 15:26:20 +02:00
parent a799fd8d6f
commit db40a0bf7c
36 changed files with 1024 additions and 670 deletions

View File

@@ -435,7 +435,7 @@ class databox_status
throw new Exception_Upload_FileTooBig();
}
if ($file->isValid()) {
if ( ! $file->isValid()) {
throw new Exception_Upload_Error();
}
@@ -444,11 +444,12 @@ class databox_status
$name = "-stat_" . $bit . "_" . ($switch == 'on' ? '1' : '0') . ".gif";
try {
$file->move($path, $name);
$file = $file->move($registry->get('GV_RootPath') . "config/status/", $path.$name);
} catch (FileException $e) {
throw new Exception_Upload_CannotWriteFile();
}
$custom_path = $registry->get('GV_RootPath') . 'www/custom/status/';
$core['file-system']->mkdir($custom_path, 0750);