Skip to content
Snippets Groups Projects
Commit 9c5a07bb authored by Joseph AKEL's avatar Joseph AKEL
Browse files

FIX #26614 03:15 Changing getConfigPath() to get the right path to config.json

parent 9751851f
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,15 @@ class CoreConfigModel
{
public static function getConfigPath()
{
return empty($_SERVER['CONFIG_DIR']) ? $_SERVER['REDIRECT_CONFIG_DIR'] : $_SERVER['CONFIG_DIR'];
if (isset($_SERVER['CONFIG_DIR'])) {
$path = $_SERVER['CONFIG_DIR'];
} elseif (isset($_SERVER['REDIRECT_CONFIG_DIR'])) {
$path = $_SERVER['REDIRECT_CONFIG_DIR'];
} else {
$path = $_SERVER['argv'][1];
}
return $path;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment