Changeset 15121 for extensions/GooglePlusOne/admin.php
- Timestamp:
- May 19, 2012, 1:11:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GooglePlusOne/admin.php
r11600 r15121 5 5 6 6 load_language('plugin.lang', GPLUS1_PATH); 7 $conf['GooglePlusOne'] = explode(',',$conf['GooglePlusOne']);7 $conf['GooglePlusOne'] = unserialize($conf['GooglePlusOne']); 8 8 9 9 if (isset($_POST['submit'])) 10 10 { 11 11 $conf['GooglePlusOne'] = array( 12 $_POST['button_size'], 13 $_POST['position'], 12 'size' => $_POST['button_size'], 13 'position' => $_POST['position'], 14 'annotation' => $_POST['annotation'], 14 15 ); 15 16 16 conf_update_param('GooglePlusOne', implode(',',$conf['GooglePlusOne']));17 conf_update_param('GooglePlusOne', serialize($conf['GooglePlusOne'])); 17 18 array_push($page['infos'], l10n('Information data registered in database')); 18 19 … … 22 23 23 24 $template->assign(array( 24 'button_size' => $conf['GooglePlusOne'][0], 25 'position' => $conf['GooglePlusOne'][1], 25 'button_size' => $conf['GooglePlusOne']['size'], 26 'position' => $conf['GooglePlusOne']['position'], 27 'annotation' => $conf['GooglePlusOne']['annotation'], 26 28 'GPLUS1_PATH' => GPLUS1_PATH, 27 29 ));
Note: See TracChangeset
for help on using the changeset viewer.