MDL-71610 theme_boost: remove edit button from Boost
This commit is contained in:
+4
-1
@@ -184,7 +184,10 @@ if ($PAGE->user_allowed_editing()) {
|
||||
}
|
||||
|
||||
$url = new moodle_url("$CFG->wwwroot/user/profile.php", $params);
|
||||
$button = $OUTPUT->single_button($url, $editstring);
|
||||
$button = '';
|
||||
if (!$PAGE->theme->haseditswitch) {
|
||||
$button = $OUTPUT->single_button($url, $editstring);
|
||||
}
|
||||
$PAGE->set_button($resetbutton . $button);
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user