Minor correction
This commit is contained in:
parent
9e97a6d414
commit
faad3e69de
1 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,8 @@
|
||||||
|
|
||||||
if ($this->path === null)
|
if ($this->path === null)
|
||||||
{
|
{
|
||||||
|
$filePath = $name . '.conf';
|
||||||
|
|
||||||
// If the CONFIGLIB_PATH environment variable is set, use it as the configuration path
|
// If the CONFIGLIB_PATH environment variable is set, use it as the configuration path
|
||||||
if(getenv('CONFIGLIB_PATH'))
|
if(getenv('CONFIGLIB_PATH'))
|
||||||
{
|
{
|
||||||
|
@ -73,7 +75,6 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$filePath = $name . '.conf';
|
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
|
||||||
{
|
{
|
||||||
$configDir = getenv('APPDATA') ?: getenv('LOCALAPPDATA');
|
$configDir = getenv('APPDATA') ?: getenv('LOCALAPPDATA');
|
||||||
|
|
Loading…
Add table
Reference in a new issue