mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 05:44:36 +02:00
Optimize IcingaConfig::resolvePath
This commit is contained in:
parent
6e4bf73c36
commit
6daccae30e
@ -173,6 +173,8 @@ class Config extends Zend_Config
|
|||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$configDir . DIRECTORY_SEPARATOR . $path;
|
$path = self::$configDir . DIRECTORY_SEPARATOR . $path;
|
||||||
|
$canonical = realpath($path);
|
||||||
|
return ($canonical === false) ? $path : $canonical;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user