From 6b153b0a50788c0c847306823e31a68214d36174 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Wed, 7 Oct 2009 10:45:25 +0200 Subject: Graphical fix. Changing the amount of
used in forms. This fix causes all skins behave the same way (showing the info in a unified way) --- lib/viewfunctions.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/viewfunctions.lua') diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index 9a2feb7..5965d16 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -88,6 +88,7 @@ function displayformstart(myform, page_info) if not myform.action and page_info then myform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action end + io.write('
\n') if myform.descr then io.write('

' .. string.gsub(html.html_escape(myform.descr), "\n", "
") .. "

\n") end if myform.errtxt then io.write('

' .. string.gsub(html.html_escape(myform.errtxt), "\n", "
") .. "

\n") end io.write('
\n') local reverseorder= {["redir"]=0} if order then for x,name in ipairs(order) do @@ -134,16 +134,14 @@ function displayform(myform, order, finishingorder, page_info) end end end - io.write('
\n') displayformend(myform) end function displayformend(myform) if not myform then return end - io.write('
\n') io.write('
\n') - io.write('
\n') io.write('') + io.write('
\n') end function displaycommandresults(commands, session, preserveerrors) -- cgit v1.2.3