From c483a3fd9149ff6435bd4361fef8d366d1970a28 Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 14 Mar 2010 23:58:55 +0000 Subject: use the new conf_update_param function. git-svn-id: http://piwigo.org/svn/trunk@5139 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin.php | 15 +-------------- 1 file changed, 1 insertion(+), 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'); } -- cgit v1.2.3