mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
FIxed defaulting $SESSION->cal_show_user
This commit is contained in:
parent
f84a801af1
commit
af62781bca
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,6 @@
|
|||
require_once("../config.php");
|
||||
require_once("lib.php");
|
||||
require_once("$CFG->libdir/blocklib.php");
|
||||
require_once('../calendar/lib.php');
|
||||
|
||||
optional_variable($id);
|
||||
optional_variable($name);
|
||||
|
@ -26,6 +25,8 @@
|
|||
|
||||
require_login($course->id);
|
||||
|
||||
require_once('../calendar/lib.php'); /// This is after login because it needs $USER
|
||||
|
||||
add_to_log($course->id, "course", "view", "view.php?id=$course->id", "$course->id");
|
||||
|
||||
if (!file_exists($CFG->dirroot.'/course/format/'.$course->format.'/format.php')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue