Closed OdyX closed 8 years ago
Within the core renderer you don't need the $PAGE global but instead can use:
$this->page->layout_options['langmenu']
etc.
Ah yeah, nice. Changed that.
Thanks again Didier. It works perfectly. I was just wondering where the language menu should actually show. Currently it shows only when 'langmenu' => true
is configured in the layouts in config.php. So only on layouts login, course and mydashboard.
I am guessing it should be shown on the frontpage too.
On Moodle 3.1beta; without this, theme/bootstrap displays no language menu at all.
This is arguably duplicated code, but it is needed as long as core doesn't have a generic way to create it.