aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
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');
}