From f6eb428ea6baeade4eff0a76b1bbb4547f3fc13d Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 23 Apr 2010 10:39:47 +0000 Subject: [PATCH] MDL-21781 trying to fix context+page title filtering trouble --- cohort/assign.php | 2 +- cohort/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cohort/assign.php b/cohort/assign.php index 56d376cd8a4..45c74960e24 100644 --- a/cohort/assign.php +++ b/cohort/assign.php @@ -36,8 +36,8 @@ $context = get_context_instance_by_id($cohort->contextid, MUST_EXIST); require_capability('moodle/cohort:assign', $context); -$PAGE->set_url('/cohort/assign.php', array('id'=>$id)); $PAGE->set_context($context); +$PAGE->set_url('/cohort/assign.php', array('id'=>$id)); $returnurl = new moodle_url('/cohort/index.php', array('contextid'=>$cohort->contextid)); diff --git a/cohort/index.php b/cohort/index.php index 9d1d1f13199..8b93928203a 100644 --- a/cohort/index.php +++ b/cohort/index.php @@ -54,9 +54,9 @@ if (!$manager) { $strcohorts = get_string('cohorts', 'cohort'); if ($category) { + $PAGE->set_context($context); $PAGE->set_url('/cohort/index.php', array('contextid'=>$context->id)); $PAGE->set_title($strcohorts); - $PAGE->set_context($context); $PAGE->navbar->add($category->name, new moodle_url('/course/index.php', array('categoryedit'=>'1'))); $PAGE->navbar->add($strcohorts); } else { -- 2.43.0