Prepend server_dir to form actions that use absolute paths.

This commit is contained in:
James Valleroy committed 2013-11-02 11:40:18 +00:00
1 parent 77948f0e96
commit 60ea9f43cd
7 files changed
+9 -9

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ class xmpp(PagePlugin):
main = "<p>XMPP Server Configuration</p>"
form = Form(title="Configuration",
action="/services/xmpp",
action=cfg.server_dir + "/services/xmpp",
name="configure_xmpp",
message='')
form.checkbox(_("Allow In-Band Registration"), name="xmpp_inband_enable",
@@ -66,7 +66,7 @@ class register(FormPlugin, PagePlugin):
def main(self, username='', message=None, *args, **kwargs):
form = Form(title="Register XMPP Account",
action="/services/xmpp/register/index",
action=cfg.server_dir + "/services/xmpp/register/index",
name="register_xmpp_form",
message=message)
form.text_input(_("Username"), name="username", value=username)