aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-14 23:58:55 +0000
committerplegall <plg@piwigo.org>2010-03-14 23:58:55 +0000
commitc483a3fd9149ff6435bd4361fef8d366d1970a28 (patch)
treef3e50195b72c4e0469ce589750c08f1a2cbceecf /admin.php
parentb95eebbe1809fa74e333df85549c18d77fff7811 (diff)
use the new conf_update_param function.
git-svn-id: http://piwigo.org/svn/trunk@5139 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/admin.php b/admin.php
index aaf9b40ca..3342a1879 100644
--- a/admin.php
+++ b/admin.php
@@ -71,20 +71,7 @@ if (isset($_GET['change_theme']))
)
);
- $query = '
-DELETE
- FROM '.CONFIG_TABLE.'
- WHERE param = "admin_theme"
-;';
- pwg_query($query);
-
- $query = '
-INSERT
- INTO '.CONFIG_TABLE.'
- SET param = "admin_theme"
- , value = "'.$new_admin_theme.'"
-;';
- pwg_query($query);
+ conf_update_param('admin_theme', $new_admin_theme);
redirect('admin.php');
}