Changeset 96290 in spip-zone


Ignore:
Timestamp:
Mar 29, 2016, 8:47:17 AM (3 years ago)
Author:
p@…
Message:

Accepter l'action du connecteur

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/facebook/trunk/inc/facebook.php

    r96288 r96290  
    4040 * @return string Lien vers Facebook
    4141 */
    42 function facebook_lien_connection($action = 'facebook_access_token') {
     42function facebook_lien_connection($action) {
    4343
    4444        include_spip('inc/config');
     
    6161        $permission = explode(',', _FACEBOOK_PERMISSION);
    6262
    63         $url = generer_action_auteur($action, 'facebook', self(), true);
    64 
    65         $loginUrl = $helper->getLoginUrl($url, $permission);
    66 
    67         return '<a href="'.htmlspecialchars($loginUrl).'">Log in with Facebook !</a> '.$compte_connecte;
     63        $loginUrl = $helper->getLoginUrl($action, $permission);
     64
     65        return htmlspecialchars($loginUrl);
    6866}
    6967
Note: See TracChangeset for help on using the changeset viewer.