mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 00:02:18 +02:00
MDL-21781 trying to fix context+page title filtering trouble
This commit is contained in:
@@ -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));
|
||||
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user