summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-10-27 19:04:24 +0200
committerWuzzy <almikes@aol.com>2016-10-27 19:04:24 +0200
commit7233c02d08a884488f7458cbe63f124059fc3592 (patch)
tree4d6cd51ec0f558d5abdbb30ca438fd75af2f1294 /init.lua
parent8316d941e09f6b7bff9e3003799b35969b9588ef (diff)
Fix version not shown in error msg
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 0010c77..5df207e 100644
--- a/init.lua
+++ b/init.lua
@@ -492,13 +492,13 @@ end
function doc.formspec_error_no_categories()
local formstring = "size[8,6]textarea[0.25,0;8,6;;"
formstring = formstring ..
-F([=[This is the Documentation System, Version %s.
+minetest.formspec_escape(string.format(S([=[This is the Documentation System, Version %s.
ERROR: No help available.
No categories have been registered, but the Documentation System is useless without them.
The Documentation System does not come with help contents on its own, it needs additional mods to add help content.
-Please make sure such mods are enabled on for this world, and try again.]=])
+Please make sure such mods are enabled on for this world, and try again.]=]), doc.VERSION.STRING))
formstring = formstring .. ";]button_exit[3,5;2,1;okay;"..F("OK").."]"
return formstring
end