make more things use move_upload_to_archive(), and make that function quieter

git-svn-id: file:///home/shish/svn/shimmie2/trunk@914 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-07-21 11:13:25 +00:00
parent 3061cb3f23
commit 051389606e
4 changed files with 4 additions and 13 deletions

View File

@ -255,7 +255,7 @@ function get_base_href() {
function move_upload_to_archive($event) {
$hash = $event->hash;
$ha = substr($hash, 0, 2);
if(!copy($event->tmpname, "images/$ha/$hash")) {
if(!@copy($event->tmpname, "images/$ha/$hash")) {
$event->veto("Failed to copy file from uploads ({$event->tmpname}) to archive (images/$ha/$hash)");
return false;
}