mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-58916 user_profile: Pass site context when determining menu options
This commit is contained in:
parent
17fb1d84a2
commit
40ca0bd914
1 changed files with 2 additions and 1 deletions
|
@ -59,7 +59,8 @@ class profile_field_menu extends profile_field_base {
|
||||||
$this->options[''] = get_string('choose').'...';
|
$this->options[''] = get_string('choose').'...';
|
||||||
}
|
}
|
||||||
foreach ($options as $key => $option) {
|
foreach ($options as $key => $option) {
|
||||||
$this->options[$option] = format_string($option); // Multilang formatting with filters.
|
// Multilang formatting with filters.
|
||||||
|
$this->options[$option] = format_string($option, true, ['context' => context_system::instance()]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the data key.
|
// Set the data key.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue