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/badges/preferences.php

    r136 r1331  
    3131
    3232require_login();
    33 $PAGE->set_context(context_system::instance());
     33$PAGE->set_context(context_user::instance($USER->id));
    3434$PAGE->set_url($url);
    3535$PAGE->set_pagelayout('standard');
     
    4848
    4949if ($mform->is_cancelled()) {
    50     redirect($CFG->wwwroot . '/badges/mybadges.php');
     50    redirect($CFG->wwwroot . '/user/preferences.php');
    5151}
    5252
     
    5656$title = "$strbadges: $strpreferences";
    5757$PAGE->set_title($title);
    58 $PAGE->set_heading($title);
     58$PAGE->set_heading(fullname($USER));
    5959
    6060echo $OUTPUT->header();
Note: See TracChangeset for help on using the changeset viewer.