mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-71610 theme_boost: remove edit button from Boost
This commit is contained in:
parent
09f6ce9fed
commit
a0bb51622c
12 changed files with 22 additions and 9 deletions
|
@ -155,7 +155,10 @@ if (empty($CFG->forcedefaultmymoodle) && $PAGE->user_allowed_editing()) {
|
|||
}
|
||||
|
||||
$url = new moodle_url("$CFG->wwwroot/my/index.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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue