Changeset 32199 for extensions
- Timestamp:
- May 11, 2020, 11:32:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/memories/maintain.class.php
r32197 r32199 37 37 38 38 function install($plugin_version, &$errors=array()){ 39 global $conf ;39 global $conf, $pwg_loaded_plugins; 40 40 if (empty($conf['pfoya'])){ 41 41 conf_update_param('pfoya', $this->default_conf, true); … … 49 49 conf_update_param('pfoya', $old_conf, true); 50 50 } 51 52 if(isset($pwg_loaded_plugins['photos_from_one_year_ago'])){ 53 $query = 'UPDATE ' . PLUGINS_TABLE . ' SET state="inactive" WHERE id="memories";'; 54 pwg_query($query); 55 $_SESSION['page_errors'] = array(l10n('you must delete Photo from 1 year ago before activate Memories')); 56 } 57 51 58 } 59 52 60 53 61 function update($old_version, $new_version, &$errors=array()){ 54 62 $this->install($new_version, $errors); 55 63 } 56 57 64 function uninstall(){ 58 65 conf_delete_param('pfoya');
Note: See TracChangeset
for help on using the changeset viewer.