Ignore:
Timestamp:
Jan 20, 2013, 9:41:55 PM (11 years ago)
Author:
mistic100
Message:

clean code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/admin/config.php

    r20293 r20301  
    3030    }
    3131   
    32     if ($id == 'Wordpress' and $data['enabled'] and !@$providers['OpenID']['enabled'])
     32    if ( ($id=='Wordpress' or $id=='Flickr') and $data['enabled'] and !@$providers['OpenID']['enabled'] )
    3333    {
    34       array_push($page['errors'], sprintf(l10n('OpenID must be enabled in order to use %s authentification'), $id));
     34      array_push($page['errors'], sprintf(l10n('OpenID must be enabled in order to use %s authentication'), $id));
    3535      $error = true;
    3636    }
     
    5555    $content.= ";\n?>";
    5656    file_put_contents(OAUTH_CONFIG, $content);
     57 
     58    // plugin config
     59    $conf['oauth'] = array(
     60      'display_register' => isset($_POST['display_register']),
     61      'display_menubar' => isset($_POST['display_menubar']),
     62      );
     63     
     64    conf_update_param('oauth', serialize($conf['oauth']));
     65    array_push($page['infos'], l10n('Information data registered in database'));
    5766  }
    58  
    59   // plugin config
    60   $conf['oauth'] = array(
    61     'display_register' => isset($_POST['display_register']),
    62     'display_menubar' => isset($_POST['display_menubar']),
    63     );
    64    
    65   conf_update_param('oauth', serialize($conf['oauth']));
    66   array_push($page['infos'], l10n('Information data registered in database'));
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.