Optimize IcingaConfig::resolvePath
This commit is contained in:
parent
6e4bf73c36
commit
6daccae30e
|
@ -173,6 +173,8 @@ class Config extends Zend_Config
|
|||
return $path;
|
||||
}
|
||||
|
||||
return self::$configDir . DIRECTORY_SEPARATOR . $path;
|
||||
$path = self::$configDir . DIRECTORY_SEPARATOR . $path;
|
||||
$canonical = realpath($path);
|
||||
return ($canonical === false) ? $path : $canonical;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue