mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
Merge branch 'MDL-83786-main' of https://github.com/andrewnicols/moodle
This commit is contained in:
commit
86c1eaa4ef
1 changed files with 2 additions and 2 deletions
|
@ -3489,7 +3489,7 @@ EOD;
|
|||
}
|
||||
|
||||
// If filtering of the primary custom menu is enabled, apply only the string filters.
|
||||
if (!empty($CFG->navfilter && !empty($CFG->stringfilters))) {
|
||||
if (!empty($CFG->navfilter) && !empty($CFG->stringfilters)) {
|
||||
// Apply filters that are enabled for Content and Headings.
|
||||
$filtermanager = \filter_manager::instance();
|
||||
$custommenuitems = $filtermanager->filter_string($custommenuitems, \context_system::instance());
|
||||
|
@ -3512,7 +3512,7 @@ EOD;
|
|||
}
|
||||
|
||||
// If filtering of the primary custom menu is enabled, apply only the string filters.
|
||||
if (!empty($CFG->navfilter && !empty($CFG->stringfilters))) {
|
||||
if (!empty($CFG->navfilter) && !empty($CFG->stringfilters)) {
|
||||
// Apply filters that are enabled for Content and Headings.
|
||||
$filtermanager = \filter_manager::instance();
|
||||
$custommenuitems = $filtermanager->filter_string($custommenuitems, \context_system::instance());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue