liquid_feedback_frontend

changeset 613:d0f99272f675

Fixed displaying of help texts
author bsw
date Sun Jun 24 23:36:21 2012 +0200 (2012-06-24)
parents df0b83d79524
children c4e11c003b0c
files app/main/help/show.lua
line diff
     1.1 --- a/app/main/help/show.lua	Sun Jun 24 23:27:40 2012 +0200
     1.2 +++ b/app/main/help/show.lua	Sun Jun 24 23:36:21 2012 +0200
     1.3 @@ -15,21 +15,19 @@
     1.4  local found_help = false
     1.5  -- we try to load any help file that fits best
     1.6  for x,lang in ipairs{locale.get("lang"), "en"} do
     1.7 -  for x,htype in ipairs{"_full", ""} do
     1.8 -    local file_name = basepath .. "/locale/help/" .. id .. htype .. "." .. lang .. ".txt.html"
     1.9 -    local file = io.open(file_name)
    1.10 -    if file ~= nil then
    1.11 -      local help_text = file:read("*a")
    1.12 -      if #help_text > 0 then
    1.13 -        found_help = true
    1.14 -        ui.container{
    1.15 -          attr = { class = "wiki" },
    1.16 -          content = function()
    1.17 -            slot.put(help_text)
    1.18 -          end
    1.19 -        }
    1.20 -        break
    1.21 -      end
    1.22 +  local file_name = basepath .. "/locale/help/" .. id .. "." .. lang .. ".txt.html"
    1.23 +  local file = io.open(file_name)
    1.24 +  if file ~= nil then
    1.25 +    local help_text = file:read("*a")
    1.26 +    if #help_text > 0 then
    1.27 +      found_help = true
    1.28 +      ui.container{
    1.29 +        attr = { class = "wiki" },
    1.30 +        content = function()
    1.31 +          slot.put(help_text)
    1.32 +        end
    1.33 +      }
    1.34 +      break
    1.35      end
    1.36    end
    1.37  end

Impressum / About Us