mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -231,7 +231,7 @@
|
|||
// The code will be much nicer than this eventually.
|
||||
$title = $courseshortname.': ' . format_string($data->name);
|
||||
|
||||
if ($PAGE->user_allowed_editing()) {
|
||||
if ($PAGE->user_allowed_editing() && !$PAGE->theme->haseditswitch) {
|
||||
// Change URL parameter and block display string value depending on whether editing is enabled or not
|
||||
if ($PAGE->user_is_editing()) {
|
||||
$urlediting = 'off';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue