Changeset 23277


Ignore:
Timestamp:
06/16/13 23:14:19 (7 years ago)
Author:
mistic100
Message:

remove the ugly load_conf_from_db();

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/elegant/admin/admin.inc.php

    r23251 r23277  
    1414        $config_send['p_pict_descr']=(isset($_POST['p_pict_descr']) and !empty($_POST['p_pict_descr'])) ? $_POST['p_pict_descr'] : 'on'; 
    1515        $config_send['p_pict_comment']=(isset($_POST['p_pict_comment']) and !empty($_POST['p_pict_comment'])) ? $_POST['p_pict_comment'] : 'off'; 
    16         conf_update_param('elegant', pwg_db_real_escape_string(serialize($config_send))); 
     16   
     17        $conf['elegant'] = serialize($config_send); 
     18        conf_update_param('elegant', pwg_db_real_escape_string($conf['elegant'])); 
    1719 
    1820  array_push($page['infos'], l10n('Information data registered in database')); 
    19  
    20   load_conf_from_db(); 
    2121} 
    2222 
Note: See TracChangeset for help on using the changeset viewer.