From 904b4e941f164da11a233f0825b4552bb089e89a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 29 Jun 2018 14:09:59 +0200 Subject: fix cannot retrieve GLPI configuration when personalized upstream from https://forge.glpi-project.org/issues/5565 --- changeset_r458.diff | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 changeset_r458.diff (limited to 'changeset_r458.diff') 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)) { -- cgit