Skip to content

Commit

Permalink
"added missing $PAGE->set_url"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed May 4, 2010
1 parent 677199d commit 390679e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@

if ($file_info and $delete) {
if (!data_submitted() or !confirm_sesskey()) {
$params = $file_info->get_params();
$params = array_merge($params, array('delete'=>1));
$PAGE->set_url("/files/index.php", $params);
echo $OUTPUT->header();
echo $OUTPUT->notification(get_string('deletecheckwarning').': '.$file_info->get_visible_name());
$parent_info = $file_info->get_parent();
Expand Down Expand Up @@ -335,4 +338,4 @@ function displaydir($file_info) {
echo "</div>";
echo "<hr/>";

}
}

0 comments on commit 390679e

Please sign in to comment.