Changeset 32182 for extensions/Photo_add_by
- Timestamp:
- May 6, 2020, 10:12:14 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Photo_add_by/maintain.class.php
r32181 r32182 22 22 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 23 23 24 class Photo_add_by_maintain extends PluginMaintain 25 { 24 class Photo_add_by_maintain extends PluginMaintain{ 26 25 private $installed = false; 27 26 28 function __construct($plugin_id) 29 { 27 function __construct($plugin_id){ 30 28 parent::__construct($plugin_id); 31 29 } 32 30 33 function install($plugin_version, &$errors=array()) 34 { 35 36 31 function install($plugin_version, &$errors=array()){ 32 37 33 } 38 34 39 function activate($plugin_version, &$errors=array()) 40 { 41 global $conf; 42 35 function activate($plugin_version, &$errors=array()){ 36 global $conf, $template; 43 37 if (!isset($conf['Photo_add_by'])){ 44 38 conf_update_param('Photo_add_by', 'Categories',true); … … 50 44 } 51 45 52 function update($old_version, $new_version, &$errors=array()) 53 { 46 function update($old_version, $new_version, &$errors=array()){ 54 47 global $conf; 55 56 48 if (!isset($conf['Photo_add_by'])){ 57 49 conf_update_param('Photo_add_by', 'Categories',true); … … 60 52 conf_update_param('Photo_add_by_show',0,true); 61 53 } 62 63 54 } 64 55 65 function deactivate() 66 { 56 function deactivate(){ 57 global $template; 67 58 $template->delete_compiled_templates(array('picture' => 'picture.tpl')); 68 59 } 69 60 70 function uninstall() 71 { 61 function uninstall(){ 72 62 conf_delete_param('Photo_add_by_show','Photo_add_by'); 73 74 63 } 75 64 }
Note: See TracChangeset
for help on using the changeset viewer.