Browse Source

URL_LOGOUT utilise self()

spip-1.9
Fil 17 years ago
parent
commit
32cddfa5a1
  1. 10
      formulaires/inc-url_logout.php

10
formulaires/inc-url_logout.php

@ -24,12 +24,12 @@ function balise_URL_LOGOUT_dyn($cible) {
if (!$login = $GLOBALS['auteur_session']['login'])
return '';
if (!$cible) {
$link = new Link();
$cible = $link->getUrl();
}
if (!$cible)
$cible = self();
return generer_url_public('spip_cookie', "logout_public=$login&url=" . urlencode($cible));
return generer_url_public('spip_cookie',
"logout_public=".urlencode($login)."&url=" . urlencode($cible)
);
}
?>

Loading…
Cancel
Save