diff options
author | Wuzzy <almikes@aol.com> | 2016-10-30 20:29:11 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-10-30 20:29:11 +0100 |
commit | 1924155d11f324ed11b04212c00e1d59a70dd638 (patch) | |
tree | 8f12d9e331ca38219c31097bdfe7026c1d80a53d /init.lua | |
parent | b1965e77ec796163b2332c751f524eb737010988 (diff) |
Show “Nameless entry” in entry page
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -714,11 +714,11 @@ function doc.formspec_entry(category_id, entry_id) local category = doc.data.categories[category_id] local entry = doc.get_entry(category_id, entry_id) - local name = entry.name - if name == nil or name == "" then - name = S("(Nameless entry)") + local ename = entry.name + if ename == nil or ename == "" then + ename = S("(Nameless entry)") end - formstring = "label[0,0;"..minetest.formspec_escape(string.format(S("Help > %s > %s"), category.def.name, entry.name)).."]" + formstring = "label[0,0;"..minetest.formspec_escape(string.format(S("Help > %s > %s"), category.def.name, ename)).."]" formstring = formstring .. category.def.build_formspec(entry.data) formstring = formstring .. doc.formspec_entry_navigation(category_id, entry_id) end |