Fix last commit: add chmod() to fix some permissions derping

This commit is contained in:
Michael Foster 2013-08-12 23:06:58 +10:00
parent 0de0bc6ceb
commit 6a1e8e834b

View File

@ -588,6 +588,7 @@ if (isset($_POST['delete'])) {
if (isset($post['file_tmp'])) {
if (!@rename($upload, $post['file']))
error($config['error']['nomove']);
chmod($post['file'], 0755);
} elseif (!@move_uploaded_file($upload, $post['file']))
error($config['error']['nomove']);
}