Skip to content

Commit

Permalink
fix: erratic app_list_strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbarletta committed Jun 6, 2018
1 parent 6ea0e8a commit 2fab9b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
$GLOBALS['current_user'] = new User();
$GLOBALS['current_user']->retrieve($_SESSION['authenticated_user_id']);
}
if(empty($GLOBALS['current_language'])){
$GLOBALS['current_language'] = $sugar_config['default_language'];
}
$GLOBALS['app_list_strings'] = return_app_list_strings_language($GLOBALS['current_language']);
return $next($request, $response);
}else{
return $response->withJson(['result'=>'error','message'=> 'not authenticated'], 403);
Expand Down

0 comments on commit 2fab9b3

Please sign in to comment.