Ignore:
Timestamp:
Jan 11, 2014, 3:50:26 PM (10 years ago)
Author:
mistic100
Message:

add 'allow_merge_accounts' parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/maintain.inc.php

    r26619 r26626  
    1111    'identification_icon' => '38px',
    1212    'menubar_icon' => '26px',
     13    'allow_merge_accounts' => true,
    1314    );
    1415   
     
    3031      $conf['oauth'] = serialize($this->default_conf);
    3132      conf_update_param('oauth', $conf['oauth']);
     33    }
     34    else
     35    {
     36      $old_conf = is_string($conf['oauth']) ? unserialize($conf['oauth']) : $conf['oauth'];
     37     
     38      if (!isset($old_conf['allow_merge_accounts']))
     39      {
     40        $old_conf['allow_merge_accounts'] = true;
     41       
     42        $conf['oauth'] = serialize($old_conf);
     43        conf_update_param('oauth', $conf['oauth']);
     44      }
    3245    }
    3346   
     
    5568    }
    5669   
    57     // add fields in hybridauth conf file
     70    // add 'total' and 'enabled' fields in hybridauth conf file
    5871    if (file_exists($this->file))
    5972    {
Note: See TracChangeset for help on using the changeset viewer.