Skip to content

Commit

Permalink
MDL-21781 fixed nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 23, 2010
1 parent a379029 commit cec5baa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions cohort/assign.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -41,8 +39,6 @@
$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')));
Expand Down
2 changes: 0 additions & 2 deletions cohort/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@
$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')));
Expand Down
2 changes: 0 additions & 2 deletions cohort/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
$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')));
}
Expand Down

0 comments on commit cec5baa

Please sign in to comment.