Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/admin/roles/permissions.php

    r136 r1331  
    6060
    6161if ($context->contextlevel == CONTEXT_USER and $USER->id != $context->instanceid) {
     62    $PAGE->navbar->includesettingsbase = true;
    6263    $PAGE->navigation->extend_for_user($user);
    63     $PAGE->set_context(context_course::instance($course->id));
     64    $PAGE->set_context(context_user::instance($user->id));
    6465} else {
    6566    $PAGE->set_context($context);
     
    195196echo $OUTPUT->heading($title);
    196197
     198$adminurl = new moodle_url('/admin/');
     199$arguments = array('contextid' => $contextid,
     200                'contextname' => $contextname,
     201                'adminurl' => $adminurl->out());
     202$PAGE->requires->strings_for_js(
     203                                array('roleprohibitinfo', 'roleprohibitheader', 'roleallowinfo', 'roleallowheader',
     204                                    'confirmunassigntitle', 'confirmroleunprohibit', 'confirmroleprevent', 'confirmunassignyes',
     205                                    'confirmunassignno'), 'core_role');
     206$PAGE->requires->js_call_amd('core/permissionmanager', 'initialize', array($arguments));
    197207$table = new core_role_permissions_table($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles);
    198208echo $OUTPUT->box_start('generalbox capbox');
Note: See TracChangeset for help on using the changeset viewer.