Skip to content

Commit

Permalink
MDL-58916 user_profile: Pass site context when determining menu options
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed May 12, 2017
1 parent 4d16052 commit 15e5a39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/profile/field/menu/field.class.php
Expand Up @@ -59,7 +59,8 @@ public function __construct($fieldid = 0, $userid = 0) {
$this->options[''] = get_string('choose').'...';
}
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.
Expand Down

0 comments on commit 15e5a39

Please sign in to comment.