Changeset 5139


Ignore:
Timestamp:
03/15/10 00:58:55 (10 years ago)
Author:
plg
Message:

use the new conf_update_param function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r5123 r5139  
    7272    ); 
    7373 
    74   $query = ' 
    75 DELETE 
    76   FROM '.CONFIG_TABLE.' 
    77   WHERE param = "admin_theme" 
    78 ;'; 
    79   pwg_query($query); 
    80  
    81   $query = ' 
    82 INSERT 
    83   INTO '.CONFIG_TABLE.' 
    84   SET param = "admin_theme" 
    85     , value = "'.$new_admin_theme.'" 
    86 ;'; 
    87   pwg_query($query); 
     74  conf_update_param('admin_theme', $new_admin_theme); 
    8875 
    8976  redirect('admin.php'); 
Note: See TracChangeset for help on using the changeset viewer.