Changeset 6976 for extensions/ColorStat/cstat_install.class.inc.php
- Timestamp:
- Sep 20, 2010, 12:43:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ColorStat/cstat_install.class.inc.php
r6176 r6976 90 90 91 91 $result=$this->tablef->create($tables_def); 92 93 GPCCore::register($this->getPluginName(), CSTAT_VERSION, CSTAT_GPC_NEEDED); 94 92 95 return($result); 93 96 } … … 99 102 public function uninstall() 100 103 { 104 GPCCore::unregister($this->getPluginName()); 105 101 106 $this->deleteConfig(); 102 107 $this->tablef->drop(); … … 109 114 110 115 $this->initConfig(); 111 //$this->loadConfig(); //don't keep the previous config : we need to start with default values116 $this->loadConfig(); 112 117 $this->config['installed']=CSTAT_VERSION2; 113 $this->config['newInstall']='y';114 118 $this->saveConfig(); 115 119 /* 116 120 pwg_query("DELETE FROM ".$this->tables['color_table']); 117 121 pwg_query("DELETE FROM ".$this->tables['images_colors']); … … 128 132 FROM ".IMAGES_TABLE." 129 133 WHERE id NOT IN (SELECT image_id FROM ".$this->tables['images'].")"); 134 */ 135 GPCCore::register($this->getPluginName(), CSTAT_VERSION, CSTAT_GPC_NEEDED); 136 GPCRequestBuilder::register($this->getPluginName(), dirname($this->getFileLocation()).'/cstat_rb_callback.class.inc.php'); 130 137 131 138 return(''); … … 134 141 public function deactivate() 135 142 { 143 GPCRequestBuilder::unregister($this->getPluginName()); 136 144 } 137 145
Note: See TracChangeset
for help on using the changeset viewer.