Minor correction

This commit is contained in:
netkas 2024-12-27 15:30:08 -05:00
parent 9e97a6d414
commit faad3e69de

View file

@ -66,6 +66,8 @@
if ($this->path === null)
{
$filePath = $name . '.conf';
// If the CONFIGLIB_PATH environment variable is set, use it as the configuration path
if(getenv('CONFIGLIB_PATH'))
{
@ -73,7 +75,6 @@
}
else
{
$filePath = $name . '.conf';
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
{
$configDir = getenv('APPDATA') ?: getenv('LOCALAPPDATA');