mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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);
|
printfilelist($USER->filelist);
|
||||||
print_simple_box_end();
|
print_simple_box_end();
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
$frameold = $CFG->framename;
|
||||||
|
$CFG->framename = "ibrowser";
|
||||||
notice_yesno (get_string("deletecheckfiles"),
|
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=delete&confirm=1&sesskey=$USER->sesskey",
|
||||||
"coursefiles.php?id=$id&wdir=$wdir&action=cancel");
|
"coursefiles.php?id=$id&wdir=$wdir&action=cancel");
|
||||||
|
$CFG->framename = $frameold;
|
||||||
} else {
|
} else {
|
||||||
displaydir($wdir);
|
displaydir($wdir);
|
||||||
}
|
}
|
||||||
|
@ -609,7 +612,10 @@ function setfilelist($VARS) {
|
||||||
foreach ($VARS as $key => $val) {
|
foreach ($VARS as $key => $val) {
|
||||||
if (substr($key,0,4) == "file") {
|
if (substr($key,0,4) == "file") {
|
||||||
$count++;
|
$count++;
|
||||||
$USER->filelist[] = rawurldecode($val);
|
$val = rawurldecode($val);
|
||||||
|
if (!detect_munged_arguments($val, 0)) {
|
||||||
|
$USER->filelist[] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $count;
|
return $count;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue