Ignore:
Timestamp:
Mar 6, 2013, 12:51:44 AM (11 years ago)
Author:
mistic100
Message:

use Piwigo 2.5 template methods, share complete link, option to disable on albums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SocialButtons/include/install.inc.php

    r20374 r21232  
    1010    $default_config = array(
    1111      'position' => 'toolbar',
     12      'on_index' => true,
    1213      'twitter' => array(
    1314        'enabled' => true,
     
    6465  {
    6566    $new_conf = unserialize($conf['SocialButtons']);
     67   
    6668    if (empty($new_conf['pinterest']))
    6769    {
     
    7173        'img_size' => 'Original',
    7274        );
    73       $conf['SocialButtons'] = serialize($new_conf);
    74       conf_update_param('SocialButtons', $conf['SocialButtons']);
    7575    }
     76    if (!isset($new_conf['on_index']))
     77    {
     78      $new_conf['on_index'] = true;
     79    }
     80   
     81    $conf['SocialButtons'] = serialize($new_conf);
     82    conf_update_param('SocialButtons', $conf['SocialButtons']);
    7683  }
    7784}
Note: See TracChangeset for help on using the changeset viewer.