MDL-38979 bootstrap: add note about duplicated logic

This commit is contained in:
Dan Poltawski 2013-05-08 13:32:48 +01:00
parent 0249631131
commit 69b9a894a1

View File

@ -86,6 +86,8 @@ class theme_bootstrapbase_core_renderer extends core_renderer {
protected function render_custom_menu(custom_menu $menu) {
global $CFG;
// TODO: eliminate this duplicated logic, it belongs in core, not
// here. See MDL-38979.
$addlangmenu = true;
$langs = get_string_manager()->get_list_of_translations();
if (count($langs) < 2