Skip to content

Commit

Permalink
forgot the extension with the chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteelooper committed Oct 24, 2019
1 parent 4a39a7f commit 9d6e7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/inc/trashcan_restoreitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
else {
$filename = 'copyof_'.$var1;
copy('data/trash/files/'.$var1, 'files/'.$filename);
chmod('files/'.$filename.'.'.$extension, 0777);
chmod('files/'.$filename, 0777);
unlink('data/trash/files/'.$var1);
}

Expand All @@ -73,7 +73,7 @@
else {
$filename = 'copyof_'.$var1;
copy('data/trash/images/'.$var1, 'images/'.$filename);
chmod('images/'.$filename.'.'.$extension, 0777);
chmod('images/'.$filename, 0777);
unlink('data/trash/images/'.$var1);
}

Expand Down

0 comments on commit 9d6e7a8

Please sign in to comment.