mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fixed redirection after delete and added check of selected files SC#111
This commit is contained in:
parent
bce5c2cd47
commit
409fad8892
@ -263,9 +263,12 @@
|
||||
printfilelist($USER->filelist);
|
||||
print_simple_box_end();
|
||||
echo "<br />";
|
||||
$frameold = $CFG->framename;
|
||||
$CFG->framename = "ibrowser";
|
||||
notice_yesno (get_string("deletecheckfiles"),
|
||||
"coursefiles.php?id=$id&wdir=$wdir&action=delete&confirm=1&sesskey=$USER->sesskey",
|
||||
"coursefiles.php?id=$id&wdir=$wdir&action=cancel");
|
||||
$CFG->framename = $frameold;
|
||||
} else {
|
||||
displaydir($wdir);
|
||||
}
|
||||
@ -609,7 +612,10 @@ function setfilelist($VARS) {
|
||||
foreach ($VARS as $key => $val) {
|
||||
if (substr($key,0,4) == "file") {
|
||||
$count++;
|
||||
$USER->filelist[] = rawurldecode($val);
|
||||
$val = rawurldecode($val);
|
||||
if (!detect_munged_arguments($val, 0)) {
|
||||
$USER->filelist[] = $val;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $count;
|
||||
|
Loading…
x
Reference in New Issue
Block a user