diff options
author | plegall <plg@piwigo.org> | 2010-03-14 23:58:55 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-14 23:58:55 +0000 |
commit | c483a3fd9149ff6435bd4361fef8d366d1970a28 (patch) | |
tree | f3e50195b72c4e0469ce589750c08f1a2cbceecf | |
parent | b95eebbe1809fa74e333df85549c18d77fff7811 (diff) |
use the new conf_update_param function.
git-svn-id: http://piwigo.org/svn/trunk@5139 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | admin.php | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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'); } |