Changeset 24788 for extensions/SocialButtons/include/install.inc.php
- Timestamp:
- Oct 6, 2013, 9:05:18 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SocialButtons/include/install.inc.php
r24758 r24788 11 11 'position' => 'toolbar', 12 12 'on_index' => true, 13 'img_size' => 'Original', 13 14 'light' => false, 14 15 'twitter' => array( … … 26 27 'enabled' => true, 27 28 'type' => 'share_1', 28 'img_size' => 'Original',29 29 ), 30 30 'facebook' => array( … … 36 36 'enabled' => true, 37 37 'layout' => 'horizontal', 38 'img_size' => 'Original',39 38 ), 40 39 'reddit' => array( … … 48 47 { 49 48 $temp = is_string($conf['TumblrShare']) ? unserialize($conf['TumblrShare']) : $conf['TumblrShare']; 50 if (!empty($temp['type'])) $default_config['tumblr']['type'] = 51 if (!empty($temp['img_size'])) $default_config[' tumblr']['img_size'] =$temp['img_size'];49 if (!empty($temp['type'])) $default_config['tumblr']['type'] = $temp['type']; 50 if (!empty($temp['img_size'])) $default_config['img_size'] = $temp['img_size']; 52 51 } 53 52 if (isset($conf['TweetThis'])) … … 77 76 'enabled' => true, 78 77 'layout' => 'horizontal', 79 'img_size' => 'Original',80 78 ); 81 79 } … … 105 103 } 106 104 105 if (!isset($new_conf['img_size'])) 106 { 107 $new_conf['img_size'] = isset($new_conf['tumblr']['img_size']) ? $new_conf['tumblr']['img_size'] : 'Original'; 108 unset($new_conf['tumblr']['img_size'], $new_conf['pinterest']['img_size']); 109 } 110 107 111 $conf['SocialButtons'] = serialize($new_conf); 108 112 conf_update_param('SocialButtons', $conf['SocialButtons']);
Note: See TracChangeset
for help on using the changeset viewer.