summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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