MDL-31263 lib/ajax/blocks.php fix nonsensical url

This commit is contained in:
Dan Poltawski 2012-04-26 11:03:05 +08:00
parent ee5855687e
commit 70b36b488b

View File

@ -39,7 +39,7 @@ $bui_beforeid = optional_param('bui_beforeid', 0, PARAM_INT);
// Setting pagetype and URL
$PAGE->set_pagetype($pagetype);
$PAGE->set_url($CFG->libdir.'/ajax/blocks.php', array('courseid' => $courseid, 'pagelayout' => $pagelayout, 'pagetype' => $pagetype));
$PAGE->set_url('/lib/ajax/blocks.php', array('courseid' => $courseid, 'pagelayout' => $pagelayout, 'pagetype' => $pagetype));
// Verifying login and session
$cm = null;
@ -96,4 +96,4 @@ switch ($action) {
$PAGE->blocks->process_url_move();
}
break;
}
}