diff options
| author | Nathan Kinkade <nath@nkinka.de> | 2014-04-15 13:09:32 +0000 |
|---|---|---|
| committer | Nathan Kinkade <nath@nkinka.de> | 2014-04-15 13:09:32 +0000 |
| commit | e62330e58cc4d0bd9bfed5d1464ec5899a29b106 (patch) | |
| tree | 73944ca63515753f1350c66a961cfd819058f246 /templates | |
| parent | 1fd31579653180e414ee8afb48485d8ddd05fe7e (diff) | |
Fixed two bad form actions causing the forms not to work i.e. PHP_SELF uses *.php filename causing a redirct to non-*.php URL, breaking the form submission.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_account.tpl | 2 | ||||
| -rw-r--r-- | templates/nutrient_chooser.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/edit_account.tpl b/templates/edit_account.tpl index 1b778b7..9e899e3 100644 --- a/templates/edit_account.tpl +++ b/templates/edit_account.tpl @@ -19,7 +19,7 @@ --> </div> <div> - <form action='{$smarty.server.PHP_SELF}' method='post' id='formEditUser' onsubmit='validateEditUser("formEditUser"); return false;'> + <form action='{$smarty.server.REQUEST_URI}' method='post' id='formEditUser' onsubmit='validateEditUser("formEditUser"); return false;'> <div class='standardMargins'> <input type='text' name='username' size='25' value='{$smarty.session.user.username}' /> <strong>Login name</strong> (min. 5 chars.) diff --git a/templates/nutrient_chooser.tpl b/templates/nutrient_chooser.tpl index 18b2f81..6c94ad1 100644 --- a/templates/nutrient_chooser.tpl +++ b/templates/nutrient_chooser.tpl @@ -16,7 +16,7 @@ <a href='javascript: checkAll("nutrients[]");'>Check all</a> | <a href='javascript: uncheckAll("nutrients[]");'>Uncheck all</a> <div style='width: 100%;'> - <form action='{$_SERVER[PHP_SELF]}' method='post' id='nutrientChooser'> + <form action='{$smarty.server.REQUEST_URI}' method='post' id='nutrientChooser'> <table class='standardTable'> <tr class='tableTitleRow'> <th>Show/Hide</th> |
