Skip to content

Commit

Permalink
Use config_get_global for project_cookie
Browse files Browse the repository at this point in the history
Issue #23626
  • Loading branch information
atrol committed Nov 13, 2017
1 parent 496ba8d commit 1d42e4c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/helper_api.php
Expand Up @@ -319,7 +319,7 @@ function helper_get_current_project() {
}

if( $g_cache_current_project === null ) {
$t_cookie_name = config_get( 'project_cookie' );
$t_cookie_name = config_get_global( 'project_cookie' );

$t_project_id = gpc_get_cookie( $t_cookie_name, null );

Expand Down Expand Up @@ -347,7 +347,7 @@ function helper_get_current_project() {
* @return array
*/
function helper_get_current_project_trace() {
$t_cookie_name = config_get( 'project_cookie' );
$t_cookie_name = config_get_global( 'project_cookie' );

$t_project_id = gpc_get_cookie( $t_cookie_name, null );

Expand Down Expand Up @@ -388,7 +388,7 @@ function helper_get_current_project_trace() {
function helper_set_current_project( $p_project_id ) {
global $g_cache_current_project;

$t_project_cookie_name = config_get( 'project_cookie' );
$t_project_cookie_name = config_get_global( 'project_cookie' );

$g_cache_current_project = $p_project_id;
gpc_set_cookie( $t_project_cookie_name, $p_project_id, true );
Expand All @@ -401,7 +401,7 @@ function helper_set_current_project( $p_project_id ) {
* @return void
*/
function helper_clear_pref_cookies() {
gpc_clear_cookie( config_get( 'project_cookie' ) );
gpc_clear_cookie( config_get_global( 'project_cookie' ) );
gpc_clear_cookie( config_get( 'manage_users_cookie' ) );
gpc_clear_cookie( config_get( 'manage_config_cookie' ) );
}
Expand Down

0 comments on commit 1d42e4c

Please sign in to comment.