Bug #5565
Cannot retrieve personalized configuration (also affects RPM)
Status: | Closed | Start date: | 06/28/2018 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | remi | % Done: | 100% | |
Category: | - | |||
Target version: | 1.9.0 |
Description
into inc/methodsession.class.php
static function setSession($session) {
$current = session_id();
$session = trim($session);
if (file_exists(GLPI_ROOT . "/config/config_path.php")) {
include_once (GLPI_ROOT . "/config/config_path.php");
}
To replace by /inc/downstream.php
Associated revisions
retrieve config from base_config.php, fix #5565
History
#1 Updated by yllen about 4 years ago
config_path must stay for user installing the plugin without RPM. I will indicate the deprecated field in next version and delete it in next version +1
Purpose of change:
if (file_exists(GLPI_ROOT . '/inc/downstream.php')) {
include_once (GLPI_ROOT . '/inc/downstream.php');
} else if (file_exists(GLPI_ROOT . '/config/config_path.php')) {
include_once (GLPI_ROOT . '/config/config_path.php');
}
#2 Updated by remi about 4 years ago
A simple way can be (to be tested)
include_once (GLPI_ROOT . '/inc/based_config.php');
This file provides the needed logic to load the proper files, and defines the needed paths
It exists in 9.2 and 9.3
#3 Updated by remi about 4 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r458.
#4 Updated by remi about 4 years ago
- Assignee set to remi
- Target version set to 1.9.0
#5 Updated by remi about 4 years ago
- Subject changed from Cannot use plugin with RPM glpi 9.2.X to Cannot retrieve GLPI configuration when personalized (also affects RPM)
#6 Updated by remi about 4 years ago
- Subject changed from Cannot retrieve GLPI configuration when personalized (also affects RPM) to Cannot retrieve personalized configuration (also affects RPM)
#7 Updated by yllen over 3 years ago
- Status changed from Resolved to Closed