mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
navigation MDL-23451 Fixed up course reports page blocks
This commit is contained in:
parent
0e79a0d577
commit
080d447d3b
1 changed files with 3 additions and 5 deletions
|
@ -4,11 +4,9 @@
|
|||
require_once('../config.php');
|
||||
|
||||
$id = required_param('id', PARAM_INT); // course id to import TO
|
||||
$course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST);
|
||||
|
||||
if (!$course = $DB->get_record('course', array('id'=>$id))) {
|
||||
print_error("That's an invalid course id");
|
||||
}
|
||||
|
||||
$PAGE->set_pagelayout('standard');
|
||||
require_login($course);
|
||||
|
||||
$context = get_context_instance(CONTEXT_COURSE, $course->id);
|
||||
|
@ -16,7 +14,7 @@
|
|||
|
||||
$strreports = get_string('reports');
|
||||
|
||||
$PAGE->set_url('/course/report.php', array('id'=>$id));
|
||||
$PAGE->set_url(new moodle_url('/course/report.php', array('id'=>$id)));
|
||||
$PAGE->set_title($course->fullname.': '.$strreports);
|
||||
$PAGE->set_heading($course->fullname.': '.$strreports);
|
||||
echo $OUTPUT->header();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue