X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fhtml%2Flogout.php;h=3dc371e2e147e8f82c1ed2a97b73cddf46fd0679;hb=d304d276784b0675372dcdb402a61bfdd3f8488d;hp=fef58fb1b9836a1ff4387c6842c9e021329a8175;hpb=a529fe305d073e30e1539e891b1975bb8744fa4c;p=gosa.git diff --git a/gosa-core/html/logout.php b/gosa-core/html/logout.php index fef58fb1b..3dc371e2e 100644 --- a/gosa-core/html/logout.php +++ b/gosa-core/html/logout.php @@ -1,21 +1,23 @@ dn); @@ -57,7 +60,7 @@ $GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/'; /* Set the text domain as 'messages' */ $domain = 'messages'; -bindtextdomain($domain, "$BASE_DIR/locale"); +bindtextdomain($domain, LOCALE_DIR); textdomain($domain); /* Create smarty & Set template compile directory */ @@ -73,8 +76,7 @@ if (isset ($config->data['MAIN']['COMPILE'])){ if (isset($_GET['request'])){ /* destroy old session */ - @session_unset (); - @session_destroy (); + session::destroy (); /* If we're not using htaccess authentication, just redirect... */ if (isset($config->data['MAIN']['HTACCESS_AUTH']) && preg_match('/^(true|yes)$/i', $config->data['MAIN']['HTACCESS_AUTH'])){