diff --git a/course/report/log/live.php b/course/report/log/live.php index ebf4ad189bd..9ed7d5f5e02 100644 --- a/course/report/log/live.php +++ b/course/report/log/live.php @@ -29,8 +29,12 @@ $strlivelogs = get_string("livelogs"); $strupdatesevery = get_string("updatesevery", "moodle", COURSE_LIVELOG_REFRESH); - print_header("$strlivelogs ($strupdatesevery)", "$strlivelogs", "", "", - ''); + $PAGE->set_url('/course/report/log/live.php', Array('id'=>$course->id)); + $PAGE->set_generaltype('popup'); + $PAGE->set_title("$strlivelogs ($strupdatesevery)"); + $PAGE->set_periodic_refresh_delay(COURSE_LIVELOG_REFRESH); + $PAGE->set_heading($strlivelogs); + echo $OUTPUT->header(); $user=0; $date=time() - 3600; @@ -38,7 +42,7 @@ print_log($course, $user, $date, "l.time DESC", $page, 500, "live.php?id=$course->id&user=$user&date=$date"); - print_footer('none'); + echo $OUTPUT->footer(); exit; diff --git a/course/report/participation/index.php b/course/report/participation/index.php index 56ba3d3be78..6b6d9b8f4e3 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -239,44 +239,9 @@ } echo '