mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-33061 - lib - Replacement of get_context_instance with the new function call (group 3)
This commit is contained in:
parent
147dc9dafd
commit
41b3836067
9 changed files with 74 additions and 74 deletions
|
@ -57,11 +57,11 @@ $PAGE->set_pagelayout('standard');
|
|||
|
||||
if ($courseid == SITEID) {
|
||||
require_login();
|
||||
$context = get_context_instance(CONTEXT_SYSTEM);
|
||||
$context = context_system::instance();
|
||||
$PAGE->set_context($context);
|
||||
} else {
|
||||
require_login($courseid);
|
||||
$context = get_context_instance(CONTEXT_COURSE, $courseid);
|
||||
$context = context_course::instance($courseid);
|
||||
}
|
||||
|
||||
if (empty($CFG->bloglevel)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue