Task #1159 - Déconnexion/reconnexion - pop-up?

Bug #1151Bug cannot display properly when only one submenu
This commit is contained in:
Dany De Bontridder 2015-08-26 20:02:15 +02:00
parent fd6192fa09
commit 91b80006b9
3 changed files with 22 additions and 9 deletions

View file

@ -42,7 +42,9 @@ if ( ! isset($_REQUEST['gDossier']))
if ( ! isset ($_SESSION['g_theme']))
{
echo "<h2>"._('Vous êtes déconnecté')."</h2>";
redirect('user_login.php');
$backurl=$_SERVER['REQUEST_URI'];
$url="index.php?".http_build_query(array('reconnect'=>1,'backurl'=>urlencode($backurl)));
redirect($url);
exit();
}