summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/admin-core/luasrc/model/cbi/admin_index/luci.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua b/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua
index be4b08cf53..3fdccbf802 100644
--- a/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua
+++ b/modules/admin-core/luasrc/model/cbi/admin_index/luci.lua
@@ -21,9 +21,7 @@ l = c:option(ListValue, "lang", translate("language"))
local i18ndir = luci.i18n.i18ndir .. "default."
for k, v in pairs(luci.config.languages) do
- if k:sub(1, 1) ~= "."
- and (luci.fs.isfile(i18ndir .. k .. ".lua")
- or luci.fs.isfile(i18ndir .. k)) then
+ if k:sub(1, 1) ~= "." and luci.fs.isfile(i18ndir .. k .. ".lua") then
l:value(k, v)
end
end