From 1924155d11f324ed11b04212c00e1d59a70dd638 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 30 Oct 2016 20:29:11 +0100 Subject: =?UTF-8?q?Show=20=E2=80=9CNameless=20entry=E2=80=9D=20in=20entry?= =?UTF-8?q?=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'init.lua') 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 -- cgit v1.2.3