Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Curtis Conard <cconard96@gmail.com>
  • Loading branch information
trasher and cconard96 authored Jun 9, 2023
1 parent 58adf30 commit 99b84bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,7 @@ public static function setConfigurationValues($context, array $values = [])
if ($_SESSION['glpiID'] ?? false) {
$user = new \User();
if ($user->getFromDB($_SESSION['glpiID'])) {
$user->cachePreferences();
$user->loadPreferencesInSession();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public function loadMinimalSession($entities_id, $is_recursive)
$_SESSION["glpiID"] = $this->fields['id'];
$_SESSION["glpi_use_mode"] = Session::NORMAL_MODE;
Session::loadEntity($entities_id, $is_recursive);
$this->cachePreferences();
$this->loadPreferencesInSession();
Session::loadGroups();
Session::loadLanguage();
}
Expand Down

0 comments on commit 99b84bf

Please sign in to comment.