aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-01-16 23:54:54 +0000
committerplegall <plg@piwigo.org>2005-01-16 23:54:54 +0000
commit8d595674f0e7d27ef402ac2ef7a62bd0cedb81f9 (patch)
tree73091a57e4caf1738d5c47b6b9dade7853a54965
parent4cc5cb68e202b7a74ed8bdf3c2d34c2ac53a8464 (diff)
- bug fixed : in admin/configuration, reset button was a submit button
git-svn-id: http://piwigo.org/svn/trunk@700 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/configuration.php2
-rw-r--r--template/default/admin/configuration.tpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index e5ef6f7ce..9b3ca801a 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -47,7 +47,7 @@ while ($row = mysql_fetch_array($result))
$conf[$row['param']] = $row['value'];
// if the parameter is present in $_POST array (if a form is submited), we
// override it with the submited value
- if (isset($_POST[$row['param']]) && !isset($_POST['reset']))
+ if (isset($_POST[$row['param']]))
{
$conf[$row['param']] = $_POST[$row['param']];
}
diff --git a/template/default/admin/configuration.tpl b/template/default/admin/configuration.tpl
index a0b1a436a..9349c63b7 100644
--- a/template/default/admin/configuration.tpl
+++ b/template/default/admin/configuration.tpl
@@ -205,7 +205,7 @@
<tr>
<td colspan="2" align="center">
<input type="submit" name="submit" class="bouton" value="{L_SUBMIT}">
- <input type="submit" name="reset" class="bouton" value="{L_RESET}">
+ <input type="reset" name="reset" class="bouton" value="{L_RESET}">
</td>
</tr>
</table>