mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
fix some bugs
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user