Permalink
Browse files

MDL-35374 - Cannot delete blocks off frontpage

  • Loading branch information...
1 parent 935c3d5 commit 1336e2e16069c1cf9b3a31b65d00a6666e2e5a9b @rlorenzo rlorenzo committed Sep 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/blocklib.php
View
@@ -1158,7 +1158,7 @@ public function process_url_delete() {
$PAGE->set_title($blocktitle . ': ' . $strdeletecheck);
$PAGE->set_heading($site->fullname);
echo $OUTPUT->header();
- $confirmurl = new moodle_url("$deletepage->url?", array('sesskey' => sesskey(), 'bui_deleteid' => $block->instance->id, 'bui_confirm' => 1));
+ $confirmurl = new moodle_url($deletepage->url, array('sesskey' => sesskey(), 'bui_deleteid' => $block->instance->id, 'bui_confirm' => 1));
$cancelurl = new moodle_url($deletepage->url);
$yesbutton = new single_button($confirmurl, get_string('yes'));
$nobutton = new single_button($cancelurl, get_string('no'));

0 comments on commit 1336e2e

Please sign in to comment.