Changeset 24348 for extensions
- Timestamp:
- Sep 5, 2013, 12:13:45 PM (11 years ago)
- Location:
- extensions/ContactForm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ContactForm/admin/config.php
r24347 r24348 5 5 if (isset($_POST['save_config'])) 6 6 { 7 $was_ready = $conf['ContactForm']['cf_ready']; 8 7 9 $conf['ContactForm'] = array( 8 'cf_ready' => $conf['ContactForm']['cf_ready'],9 10 'cf_must_initialize' => false, 10 11 'cf_menu_link' => isset($_POST['cf_menu_link']), … … 25 26 conf_update_param('ContactForm_after', $conf['ContactForm_after']); 26 27 28 $conf['ContactForm']['cf_ready'] = $was_ready; 29 27 30 array_push($page['infos'], l10n('Information data registered in database')); 28 31 } -
extensions/ContactForm/include/install.inc.php
r24347 r24348 22 22 if (empty($conf['ContactForm'])) 23 23 { 24 $contact_form_default_config = serialize(array( 25 'cf_ready' => false, 24 $conf['ContactForm'] = serialize(array( 26 25 'cf_must_initialize' => true, 27 26 'cf_menu_link' => true, … … 36 35 )); 37 36 38 conf_update_param('ContactForm', $contact_form_default_config);39 conf_update_param('ContactForm_before', null);40 conf_update_param('ContactForm_after', null);41 42 $conf['ContactForm'] = $contact_form_default_config;43 37 $conf['ContactForm_before'] = null; 44 38 $conf['ContactForm_after'] = null; 39 40 conf_update_param('ContactForm', $conf['ContactForm']); 41 conf_update_param('ContactForm_before', $conf['ContactForm_before']); 42 conf_update_param('ContactForm_after', $conf['ContactForm_after']); 45 43 } 46 44 else … … 98 96 } 99 97 100 if (!isset($new_conf['cf_ready']))101 {102 $new_conf['cf_ready'] = false;103 }104 105 98 // save config 106 99 $conf['ContactForm'] = serialize($new_conf); -
extensions/ContactForm/maintain.inc.php
r18649 r24348 21 21 function plugin_uninstall() 22 22 { 23 global $prefixeTable ;23 global $prefixeTable, $conf; 24 24 25 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%" LIMIT 3;');25 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param LIKE "ContactForm%";'); 26 26 pwg_query('DROP TABLE IF EXISTS `'. $prefixeTable .'contact_form`;'); 27 28 unset($conf['ContactForm'], $conf['ContactForm_before'], $conf['ContactForm_after']); 27 29 } 28 30
Note: See TracChangeset
for help on using the changeset viewer.