Software /
code /
prosody
Changeset
956:4c3f3d60a2f4
util.dataforms: Set form type when generating a form
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 05 Apr 2009 19:41:24 +0100 |
parents | 955:98ca5a753fee |
children | 957:34f8cda285c4 |
files | util/dataforms.lua |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/util/dataforms.lua Sat Apr 04 18:08:35 2009 +0100 +++ b/util/dataforms.lua Sun Apr 05 19:41:24 2009 +0100 @@ -16,10 +16,8 @@ return setmetatable(layout, form_mt); end -local form_x_attr = { xmlns = xmlns_forms }; - function form_t.form(layout, data) - local form = st.stanza("x", form_x_attr); + local form = st.stanza("x", { xmlns = xmlns_forms, type = "form" }); if layout.title then form:tag("title"):text(layout.title):up(); end