Optimize IcingaConfig::resolvePath

This commit is contained in:
Alexander Klimov 2014-06-24 15:45:19 +02:00
parent 6e4bf73c36
commit 6daccae30e
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}