From e3f7c2e6ac31dbf62462250c8721812c732347ad Mon Sep 17 00:00:00 2001 From: Roland Becker Date: Wed, 1 Nov 2017 18:13:14 +0100 Subject: [PATCH] Use config_get_global for logout_cookie Issue #23626 --- core/authentication_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/authentication_api.php b/core/authentication_api.php index e41a2d9c4a..650bf9b143 100644 --- a/core/authentication_api.php +++ b/core/authentication_api.php @@ -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 ); @@ -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 > '' );