Ignore:
Timestamp:
Apr 29, 2012, 4:58:53 PM (9 years ago)
Author:
mistic100
Message:

update for 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/bbcode_bar/maintain.inc.php

    r10983 r14525  
    2626  if (!isset($conf['bbcode_bar']))
    2727  {
    28     $q = "INSERT INTO " . CONFIG_TABLE . " (param,value,comment)
    29       VALUES ('bbcode_bar','" . serialize($BBcode_default) . "','Parametres BBCode Bar');";
    30     pwg_query($q);
     28    conf_update_param('bbcode_bar',serialize($BBcode_default));
    3129  }
    3230}
     
    5856    );
    5957   
    60     $q = "UPDATE " . CONFIG_TABLE . "
    61       SET value='" . serialize($new_bbcode_bar) . "'
    62       WHERE param='bbcode_bar';";
    63     pwg_query($q);
     58    conf_update_param('bbcode_bar', serialize($new_bbcode_bar));
    6459  }
    6560}
     
    6762function plugin_uninstall()
    6863{
    69   global $conf;
    70 
    71   if (isset($conf['bbcode_bar']))
    72   {
    73     pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar";');
    74   }
     64  pwg_query('DELETE FROM ' . CONFIG_TABLE . ' WHERE param="bbcode_bar";');
    7565}
    7666
Note: See TracChangeset for help on using the changeset viewer.