From cec5baaabb8ff0364628a8f12302bfd86d694279 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 23 Apr 2010 09:10:43 +0000 Subject: [PATCH] MDL-21781 fixed nav bar --- cohort/assign.php | 4 ---- cohort/edit.php | 2 -- cohort/index.php | 2 -- 3 files changed, 8 deletions(-) diff --git a/cohort/assign.php b/cohort/assign.php index 8d1c1c99f02..488fb9a032c 100644 --- a/cohort/assign.php +++ b/cohort/assign.php @@ -24,8 +24,6 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - - require_once('../config.php'); require_once($CFG->dirroot.'/cohort/lib.php'); @@ -41,8 +39,6 @@ require_capability('moodle/cohort:assign', $context); $PAGE->set_url('/cohort/assign.php', array('id'=>$id)); $PAGE->set_Context($context); -// TODO: ohlala, the navbar is not doing what I would expect -$PAGE->navbar->add(get_string('home'), new moodle_url('/'), navbar::TYPE_SYSTEM); if ($context->contextlevel == CONTEXT_COURSECAT) { $category = $DB->get_record('course_categories', array('id'=>$context->instanceid), '*', MUST_EXIST); $PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1'))); diff --git a/cohort/edit.php b/cohort/edit.php index 4a484203ab8..76f7be2e060 100644 --- a/cohort/edit.php +++ b/cohort/edit.php @@ -60,8 +60,6 @@ $PAGE->set_context($context); $PAGE->set_url('/cohort/edit.php', array('contextid'=>$context->id, 'id'=>$cohort->id)); $PAGE->set_context($context); -// TODO: ohlala, the navbar is not doing what I would expect -$PAGE->navbar->add(get_string('home'), new moodle_url('/'), navbar::TYPE_SYSTEM); if ($context->contextlevel == CONTEXT_COURSECAT) { $category = $DB->get_record('course_categories', array('id'=>$context->instanceid), '*', MUST_EXIST); $PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1'))); diff --git a/cohort/index.php b/cohort/index.php index f3273c4054e..8128b10631d 100644 --- a/cohort/index.php +++ b/cohort/index.php @@ -58,8 +58,6 @@ $PAGE->set_url('/cohort/index.php', array('contextid'=>$context->id)); $PAGE->set_title($strcohorts); $PAGE->set_context($context); -// TODO: ohlala, the navbar is not doing what I would expect -$PAGE->navbar->add(get_string('home'), new moodle_url('/'), navbar::TYPE_SYSTEM); if ($category) { $PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1'))); } -- 2.43.0