Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
FIX: Issue #876: Context menu in header near top right empty and show…
Browse files Browse the repository at this point in the history
…ing for non-logged in users and students.
  • Loading branch information
gjb2048 committed Nov 25, 2018
1 parent 14dfc44 commit 8af218d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
New in 3.5.1.2
==============
- FIX: Position of quiz correction icons.
- FIX: Issue #876: Context menu in header near top right empty and showing for non-logged in users and students.
- FIX: Issue #882: badgesmi setting missing in settings.php.
- FIX: Issue #884: Removed important font size declarations from responsive.less. Thanks to Mike Nodding for the patch.
- NEW: H5P Custom CSS setting in 'Features' for the H5P module (https://moodle.org/plugins/mod_hvp) if installed.
Expand Down
7 changes: 4 additions & 3 deletions classes/output/core_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,12 @@ public function context_header_settings_menu() {
}
}

if (($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu)) {
return $this->render_navbar_action_menu($menu, $title);
} else {
if ($menu->is_empty()) {
return '';
} else if (($showfrontpagemenu) || ($showcoursemenu) || ($showusermenu)) {
return $this->render_navbar_action_menu($menu, $title);
}
return '';
}

/**
Expand Down

0 comments on commit 8af218d

Please sign in to comment.