From d6daac773616f2fd50f88b99cda793a5dd5850e9 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 29 Apr 2014 13:32:18 +0100 Subject: [PATCH] Move show_lang logic inside mkwsHtmlLang. --- src/mkws-team.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index 63d50fa..607b0c8 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -354,8 +354,7 @@ function team($, teamName) { */ function mkwsHtmlAll() { mkwsSetLang(); - if (m_config.show_lang) - mkwsHtmlLang(); + mkwsHtmlLang(); var container = findnode(".mkwsMOTDContainer"); if (container.length) { @@ -400,6 +399,8 @@ function team($, teamName) { // dynamic URL or static page? /path/foo?query=test /* create locale language menu */ function mkwsHtmlLang() { + if (!m_config.show_lang) return; + var lang_default = "en"; var lang = m_config.lang || lang_default; var list = []; -- 1.7.10.4