source: extensions/SmiliesSupport/maintain.class.php @ 28849

Last change on this file since 28849 was 28849, checked in by mistic100, 10 years ago

use new maintain class

File size: 652 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4class SmiliesSupport_maintain extends PluginMaintain
5{
6  private $default_conf = array(
7    'folder'       => 'crystal',
8    'cols'         => '6',
9    'representant' => 'smile.png',
10    );
11
12  function install($plugin_version, &$errors=array())
13  {
14    global $conf;
15   
16    if (!isset($conf['smiliessupport']))
17    {
18      conf_update_param('smiliessupport', $this->default_conf, true);
19    }
20  }
21
22  function update($old_version, $new_version, &$errors=array())
23  {
24    $this->install($new_version, $errors);
25  }
26
27  function uninstall()
28  {
29    conf_delete_param('smiliessupport');
30  }
31}
Note: See TracBrowser for help on using the repository browser.