diff --git a/index.php b/index.php index 427e8f74d96..0ec3c1f633e 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,7 @@ if (!empty($CFG->defaulthomepage) && ($CFG->defaulthomepage == HOMEPAGE_MY) && o } $PAGE->set_url('/', $urlparams); $PAGE->set_course($SITE); +$PAGE->set_pagelayout('frontpage'); $PAGE->set_other_editing_capability('moodle/course:update'); $PAGE->set_other_editing_capability('moodle/course:manageactivities'); $PAGE->set_other_editing_capability('moodle/course:activityvisibility'); @@ -104,7 +105,6 @@ if (file_exists($CFG->dirroot.'/local/hub/lib.php') and get_config('local_hub', $PAGE->set_pagetype('site-index'); $PAGE->set_docs_path(''); -$PAGE->set_pagelayout('frontpage'); $editing = $PAGE->user_is_editing(); $PAGE->set_title($SITE->fullname); $PAGE->set_heading($SITE->fullname);