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

+1 -1
View File
@@ -138,7 +138,7 @@ class wan(FormPlugin, PagePlugin):
exec("if not '%(k)s' in kwargs: store['%(k)s'] = kwargs['%(k)s'] = %(c)s" % {'k':k, 'c':c})
form = Form(title="WAN Connection",
action="/router/setup/wan/index",
action=cfg.server_dir + "/router/setup/wan/index",
name="wan_connection_form",
message=message)
form.dropdown('Connection Type', vals=["DHCP", "Static IP"], id="connect_type", onchange="hideshow_static()")