mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-16596 fixed comment
This commit is contained in:
parent
a83ad94625
commit
efde411a76
@ -60,7 +60,6 @@
|
||||
} else {
|
||||
$file = $_FILES['newfile'];
|
||||
$newfilename = clean_param($file['name'], PARAM_FILE);
|
||||
// TODO: some better error handling or use some upload manager
|
||||
if (is_uploaded_file($_FILES['newfile']['tmp_name'])) {
|
||||
if ($existingfile = $fs->get_file($contextid, $filearea, $itemid, $filepath, $newfilename)) {
|
||||
$existingfile->delete();
|
||||
|
Loading…
x
Reference in New Issue
Block a user