source: extensions/Photo_add_by/maintain.class.php @ 30530

Last change on this file since 30530 was 30431, checked in by ddtddt, 10 years ago

[extensions] - Photo_add_by - compatibility see photo by user

File size: 807 bytes
Line 
1<?php
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4class Photo_add_by_maintain extends PluginMaintain
5{
6  private $installed = false;
7
8  function __construct($plugin_id)
9  {
10    parent::__construct($plugin_id);
11  }
12
13  function install($plugin_version, &$errors=array())
14  {
15   
16  }
17
18  function activate($plugin_version, &$errors=array())
19  {
20 
21  }
22
23  function update($old_version, $new_version, &$errors=array())
24  {
25    global $conf;
26   
27    if (!isset($conf['Photo_add_by'])){
28        conf_update_param('Photo_add_by', 'Categories',true);
29    }
30    if (!isset($conf['Photo_add_by_show'])){
31        conf_update_param('Photo_add_by_show',0,true);
32    }
33
34  }
35 
36  function deactivate()
37  {
38  }
39
40  function uninstall()
41  {
42    conf_delete_param('Photo_add_by_show','Photo_add_by');
43   
44  }
45}
46?>
Note: See TracBrowser for help on using the repository browser.