summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2009-09-09 14:31:00 +0200
committerHans Hagen <pragma@wxs.nl>2009-09-09 14:31:00 +0200
commit8683bfc5e51de9f4436c7deebd9517c9f2779f0a (patch)
tree3031e2270b20777bba40f54fdb7e5129323a5f06 /scripts
parentc6e9f914fe93f3f674c20fded71bf7e18b8df600 (diff)
downloadcontext-8683bfc5e51de9f4436c7deebd9517c9f2779f0a.tar.gz
beta 2009.09.09 14:31
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-server-ctx-help.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-server-ctx-help.lua b/scripts/context/lua/mtx-server-ctx-help.lua
index c53d9f6e0..c06f3cec4 100644
--- a/scripts/context/lua/mtx-server-ctx-help.lua
+++ b/scripts/context/lua/mtx-server-ctx-help.lua
@@ -298,7 +298,7 @@ local function translate(tag,int,noformat)
if noformat then
return ti[tag] or te[tag] or tag
else
- return document.setups.formats.special:format(ti[tag] or te[tag] or tag)
+ return format(document.setups.formats.special,ti[tag] or te[tag] or tag)
end
end
@@ -307,7 +307,7 @@ local function translated(e,int)
local s = attributes.type or "?"
local tag = s:match("^cd:(.*)$")
if attributes.default == "yes" then
- return document.setups.formats.default:format(tag)
+ return format(document.setups.formats.default,tag or "?")
elseif tag then
return translate(tag,int)
else