Merge branch 'MDL-73416-master' of https://github.com/bmbrands/moodle
This commit is contained in:
@@ -69,6 +69,7 @@ $PAGE->set_context($context);
|
||||
$PAGE->set_url($currenturl);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_title($badge->name);
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
$PAGE->navbar->add($badge->name);
|
||||
|
||||
$output = $PAGE->get_renderer('core', 'badges');
|
||||
|
||||
@@ -73,6 +73,7 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
$hdr = get_string('managebadges', 'badges');
|
||||
$returnurl = new moodle_url('/badges/index.php', $urlparams);
|
||||
$PAGE->set_url($returnurl);
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if ($type == BADGE_TYPE_SITE) {
|
||||
$title = get_string('sitebadges', 'badges');
|
||||
|
||||
@@ -41,6 +41,7 @@ if (empty($CFG->badges_allowcoursebadges) && ($type == BADGE_TYPE_COURSE)) {
|
||||
}
|
||||
|
||||
$title = get_string('create', 'badges');
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if (($type == BADGE_TYPE_COURSE) && ($course = $DB->get_record('course', array('id' => $courseid)))) {
|
||||
require_login($course);
|
||||
|
||||
@@ -61,6 +61,8 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
$PAGE->set_url('/badges/view.php', array('type' => $type, 'sort' => $sortby, 'dir' => $sorthow));
|
||||
}
|
||||
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if ($type == BADGE_TYPE_SITE) {
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_pagelayout('admin');
|
||||
|
||||
Reference in New Issue
Block a user