Changeset 15122 for extensions/TweetThis/admin.php
- Timestamp:
- May 19, 2012, 1:12:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/TweetThis/admin.php
r11425 r15122 5 5 6 6 load_language('plugin.lang', TWEET_PATH); 7 $conf['TweetThis'] = explode(',',$conf['TweetThis']);7 $conf['TweetThis'] = unserialize($conf['TweetThis']); 8 8 9 9 if (isset($_POST['submit'])) 10 10 { 11 11 $conf['TweetThis'] = array( 12 $_POST['button_style'], 13 $_POST['position'], 12 'size' => $_POST['button_size'], 13 'position' => $_POST['position'], 14 'count' => isset($_POST['count']), 15 'via' => trim($_POST['via']), 14 16 ); 15 17 16 conf_update_param('TweetThis', implode(',',$conf['TweetThis']));18 conf_update_param('TweetThis', serialize($conf['TweetThis'])); 17 19 array_push($page['infos'], l10n('Information data registered in database')); 18 20 … … 22 24 23 25 $template->assign(array( 24 'button_style' => $conf['TweetThis'][0], 25 'position' => $conf['TweetThis'][1], 26 'button_size' => $conf['TweetThis']['size'], 27 'position' => $conf['TweetThis']['position'], 28 'count_check' => $conf['TweetThis']['count'] ? 'checked="checked"' : null, 29 'via' => $conf['TweetThis']['via'], 26 30 'TWEET_PATH' => TWEET_PATH, 27 31 ));
Note: See TracChangeset
for help on using the changeset viewer.