summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-30 20:29:11 +0100
committerWuzzy <almikes@aol.com>2016-10-30 20:29:11 +0100
commit1924155d11f324ed11b04212c00e1d59a70dd638 (patch)
tree8f12d9e331ca38219c31097bdfe7026c1d80a53d /init.lua
parentb1965e77ec796163b2332c751f524eb737010988 (diff)
Show “Nameless entry” in entry page
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index 04f6c4e..1071db4 100644
--- a/init.lua
+++ b/init.lua
@@ -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