mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-69371 output: Render lang_menu only when necessary
This commit is contained in:
parent
f14239c8dc
commit
e26f47359b
@ -1646,7 +1646,10 @@ class core_renderer extends renderer_base {
|
||||
public function lang_menu() {
|
||||
$languagemenu = new \core\output\language_menu($this->page);
|
||||
$data = $languagemenu->export_for_single_select($this);
|
||||
return $this->render_from_template('core/single_select', $data);
|
||||
if ($data) {
|
||||
return $this->render_from_template('core/single_select', $data);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user