Skip to content
Snippets Groups Projects
Commit 93622347 authored by Elke Kreim's avatar Elke Kreim
Browse files

Remove page layout add navigation

parent 344c3da1
Branches
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ if ($CFG->lockrequestcategory) {
$context = context_coursecat::instance($categoryid ?: $CFG->defaultrequestcategory);
$PAGE->set_context($context);
$PAGE->set_pagelayout('standard');
//$PAGE->set_pagelayout('standard');
require_capability('moodle/course:request', $context);
// Set up the form.
......@@ -71,7 +71,11 @@ $requestform->set_data($data);
$strtitle = get_string('courserequest');
$PAGE->set_title($strtitle);
$PAGE->set_heading($strtitle);
$coursecategory = core_course_category::get($categoryid, MUST_EXIST, true);
$heading = $SITE->fullname;
$PAGE->set_heading($heading);
$PAGE->set_primary_active_tab('home');
// Standard form processing if statement.
if ($requestform->is_cancelled()) {
......@@ -87,6 +91,9 @@ if ($requestform->is_cancelled()) {
notice(get_string('courserequestsuccess', 'local_hsh'), $returnurl);
}
$categoryurl = new moodle_url('/course/index.php');
navigation_node::override_active_url($categoryurl);
$PAGE->navbar->add($strtitle);
echo $OUTPUT->header();
echo $OUTPUT->heading($strtitle);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment