Skip to content

Commit

Permalink
Use config_get_global for logout_cookie
Browse files Browse the repository at this point in the history
Issue #23626
  • Loading branch information
atrol committed Nov 13, 2017
1 parent ec29beb commit e3f7c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/authentication_api.php
Expand Up @@ -1157,7 +1157,7 @@ function auth_http_prompt() {
* @return void
*/
function auth_http_set_logout_pending( $p_pending ) {
$t_cookie_name = config_get( 'logout_cookie' );
$t_cookie_name = config_get_global( 'logout_cookie' );

if( $p_pending ) {
gpc_set_cookie( $t_cookie_name, '1', false );
Expand All @@ -1174,7 +1174,7 @@ function auth_http_set_logout_pending( $p_pending ) {
* @access public
*/
function auth_http_is_logout_pending() {
$t_cookie_name = config_get( 'logout_cookie' );
$t_cookie_name = config_get_global( 'logout_cookie' );
$t_cookie = gpc_get_cookie( $t_cookie_name, '' );

return( $t_cookie > '' );
Expand Down

0 comments on commit e3f7c2e

Please sign in to comment.