Ignore:
Timestamp:
May 21, 2011, 4:32:47 PM (14 years ago)
Author:
Eric
Message:

using conf_update_param() to update plugin parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/admin/UAM_admin.php

    r10957 r10976  
    186186    $conf['UserAdvManager'] = serialize($newconf_UAM);
    187187
    188                 $query = '
    189                 UPDATE '.CONFIG_TABLE.'
    190                 SET value="'.pwg_db_real_escape_string($conf['UserAdvManager']).'"
    191                 WHERE param="UserAdvManager"
    192                 LIMIT 1
    193                 ;';
    194                
    195                 pwg_query($query);
     188    conf_update_param('UserAdvManager', pwg_db_real_escape_string($conf['UserAdvManager']));
    196189
    197190    //Email confirmation settings
     
    214207
    215208    $conf['UserAdvManager_ConfirmMail'] = serialize($newconf_UAM_ConfirmMail);
    216    
    217           $query = '
    218       UPDATE '.CONFIG_TABLE.'
    219                         SET value="'.pwg_db_real_escape_string($conf['UserAdvManager_ConfirmMail']).'"
    220                         WHERE param="UserAdvManager_ConfirmMail"
    221                         LIMIT 1
    222                 ;';
    223 
    224                 pwg_query($query);
     209
     210    conf_update_param('UserAdvManager_ConfirmMail', pwg_db_real_escape_string($conf['UserAdvManager_ConfirmMail']));
    225211
    226212                array_push($page['infos'], l10n('UAM_save_config'));
Note: See TracChangeset for help on using the changeset viewer.