mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
fixed redirection after delete and added check of selected files SC#111
This commit is contained in:
parent
bce5c2cd47
commit
409fad8892
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue