From 69b9a894a1a89e353f0ac3c8cf326f761d4d2786 Mon Sep 17 00:00:00 2001
From: Dan Poltawski <dan@moodle.com>
Date: Wed, 8 May 2013 13:32:48 +0100
Subject: [PATCH] MDL-38979 bootstrap: add note about duplicated logic

---
 theme/bootstrapbase/renderers/core.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/theme/bootstrapbase/renderers/core.php b/theme/bootstrapbase/renderers/core.php
index af32ae1dfe9..504c7d0ef31 100644
--- a/theme/bootstrapbase/renderers/core.php
+++ b/theme/bootstrapbase/renderers/core.php
@@ -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