mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-45507 theme_bootstrapbase: Fix regression for theme based custom menu
in renderers/core_renderer.php.
This commit is contained in:
parent
f7adf8a010
commit
dc22f74419
1 changed files with 2 additions and 2 deletions
|
@ -78,8 +78,8 @@ class theme_bootstrapbase_core_renderer extends core_renderer {
|
|||
public function custom_menu($custommenuitems = '') {
|
||||
global $CFG;
|
||||
|
||||
if (!empty($CFG->custommenuitems)) {
|
||||
$custommenuitems .= $CFG->custommenuitems;
|
||||
if (empty($custommenuitems) && !empty($CFG->custommenuitems)) {
|
||||
$custommenuitems = $CFG->custommenuitems;
|
||||
}
|
||||
$custommenu = new custom_menu($custommenuitems, current_language());
|
||||
return $this->render_custom_menu($custommenu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue