Ignore:
Timestamp:
May 19, 2012, 1:11:01 PM (12 years ago)
Author:
mistic100
Message:

update for Piwigo 2.4
change previews with new G+1 appearance
add Annotation parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GooglePlusOne/admin.php

    r11600 r15121  
    55
    66load_language('plugin.lang', GPLUS1_PATH);
    7 $conf['GooglePlusOne'] = explode(',', $conf['GooglePlusOne']);
     7$conf['GooglePlusOne'] = unserialize($conf['GooglePlusOne']);
    88
    99if (isset($_POST['submit']))
    1010{
    1111  $conf['GooglePlusOne'] = array(
    12     $_POST['button_size'],
    13     $_POST['position'],
     12    'size' => $_POST['button_size'],
     13    'position' => $_POST['position'],
     14    'annotation' => $_POST['annotation'],
    1415    );
    1516 
    16   conf_update_param('GooglePlusOne', implode(',', $conf['GooglePlusOne']));
     17  conf_update_param('GooglePlusOne', serialize($conf['GooglePlusOne']));
    1718  array_push($page['infos'], l10n('Information data registered in database'));
    1819 
     
    2223
    2324$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'],
    2628  'GPLUS1_PATH' => GPLUS1_PATH,
    2729));
Note: See TracChangeset for help on using the changeset viewer.