Changeset 20374 for extensions/SocialButtons/include/install.inc.php
- Timestamp:
- Jan 25, 2013, 4:51:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/include/install.inc.php
r20358 r20374 31 31 'layout' => 'button_count', 32 32 ), 33 'pinterest' => array( 34 'enabled' => true, 35 'layout' => 'horizontal', 36 'img_size' => 'Original', 37 ), 33 38 ); 34 39 … … 53 58 } 54 59 55 56 60 $conf['SocialButtons'] = serialize($default_config); 57 61 conf_update_param('SocialButtons', $conf['SocialButtons']); 62 } 63 else 64 { 65 $new_conf = unserialize($conf['SocialButtons']); 66 if (empty($new_conf['pinterest'])) 67 { 68 $new_conf['pinterest'] = array( 69 'enabled' => true, 70 'layout' => 'horizontal', 71 'img_size' => 'Original', 72 ); 73 $conf['SocialButtons'] = serialize($new_conf); 74 conf_update_param('SocialButtons', $conf['SocialButtons']); 75 } 58 76 } 59 77 }
Note: See TracChangeset
for help on using the changeset viewer.