Changeset 30900 for extensions/greydragon/maintain.class.php
- Timestamp:
- Jan 23, 2015, 7:53:13 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/maintain.class.php
r30783 r30900 6 6 class greydragon_maintain extends PluginMaintain { 7 7 8 private $dir;9 8 private $themeCore; 10 9 … … 13 12 14 13 $this->themeCore = greyDragonCore::Instance(GDTHEME_VERSION); 15 $this->dir = PHPWG_ROOT_PATH . PWG_LOCAL_DIR . 'greydragon/';16 14 } 17 15 … … 20 18 */ 21 19 function install($plugin_version, &$errors=array()) { 22 $this->themeCore-> prepareCustomCSS();20 $this->themeCore->update("0.0", $plugin_version); 23 21 } 24 22 … … 27 25 */ 28 26 function update($old_version, $new_version, &$errors=array()) { 29 $this-> install($new_version, $errors);27 $this->themeCore->update($old_version, $new_version); 30 28 } 31 29 … … 34 32 */ 35 33 function uninstall() { 36 // delete configuration 37 conf_delete_param('greydragon'); 38 39 $this->themeCore->deleteCustomCSS(); 34 $this->themeCore->uninstall(); 40 35 } 41 36 }
Note: See TracChangeset
for help on using the changeset viewer.