diff options
author | Remi Collet <remi@remirepo.net> | 2018-06-29 14:09:59 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2018-06-29 14:09:59 +0200 |
commit | 904b4e941f164da11a233f0825b4552bb089e89a (patch) | |
tree | 88e54750e6c8774a018e1656264052c450c9d906 /changeset_r458.diff | |
parent | 77aca372fc8feea9445eb1b3d86a9cac83e2be34 (diff) |
fix cannot retrieve GLPI configuration when personalized upstream from https://forge.glpi-project.org/issues/5565glpi92
Diffstat (limited to 'changeset_r458.diff')
-rw-r--r-- | changeset_r458.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/changeset_r458.diff b/changeset_r458.diff new file mode 100644 index 0000000..13740e3 --- /dev/null +++ b/changeset_r458.diff @@ -0,0 +1,18 @@ +Index: trunk/inc/methodsession.class.php +=================================================================== +--- trunk/inc/methodsession.class.php (révision 457) ++++ trunk/inc/methodsession.class.php (révision 458) +@@ -339,12 +339,7 @@ + $current = session_id(); + $session = trim($session); + +- if (file_exists(GLPI_ROOT . "/config/config_path.php")) { +- include_once (GLPI_ROOT . "/config/config_path.php"); +- } +- if (!defined("GLPI_SESSION_DIR")) { +- define("GLPI_SESSION_DIR", GLPI_ROOT . "/files/_sessions"); +- } ++ require_once GLPI_ROOT . '/inc/based_config.php'; + + if ($session != $current) { + if (!empty($current)) { |