Ignore:
Timestamp:
11/10/09 16:04:07 (10 years ago)
Author:
LucMorizur
Message:

[Event Cats] Improve configuration parameters management

File:
1 edited

Legend:

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

    r4092 r4239  
    3737 
    3838function plugin_uninstall() { 
    39  
    4039  global $prefixeTable, $ec_conf; 
    4140 
     
    4645 
    4746function plugin_install() { 
    48  
    4947  global $prefixeTable; 
    5048   
     
    133131 
    134132*/ 
    135   pwg_query(' 
    136    INSERT INTO '.CONFIG_TABLE.' (param,value,comment) 
    137    VALUES ("event_cats","0,1,0,0","Paramètres du plugin Event Cats"); 
    138   '); 
    139   change_ec_conf('activated', 0); 
     133  pwg_query(" 
     134    INSERT INTO `".CONFIG_TABLE."` (`param`,`value`,`comment`) 
     135    VALUES ('event_cats','0','Paramètres du plugin Event Cats'); 
     136  "); 
     137  change_ec_conf('activated', '0'); 
    140138  return $q; 
    141139} 
    142140 
    143141function plugin_activate() { 
    144   change_ec_conf('activated', 1); 
     142  change_ec_conf('activated', '1'); 
    145143} 
    146144 
    147145function plugin_deactivate() { 
    148   change_ec_conf('activated', 0); 
     146  change_ec_conf('activated', '0'); 
    149147} 
    150148 
Note: See TracChangeset for help on using the changeset viewer.