From 3e31ff65a4401f227da97e028a543911108ed597 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Tue, 24 Jun 2014 15:57:13 +0200 Subject: [PATCH] Prefer dirname rather than pathinfo --- library/Icinga/Application/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Application/Config.php b/library/Icinga/Application/Config.php index 1e6425e9e..7070e982c 100644 --- a/library/Icinga/Application/Config.php +++ b/library/Icinga/Application/Config.php @@ -169,7 +169,7 @@ class Config extends Zend_Config throw new ProgrammingError('Windows support has not yet been implemented'); } - if (strpos(pathinfo($path, PATHINFO_DIRNAME), DIRECTORY_SEPARATOR) === 0) { + if (strpos(dirname($path), DIRECTORY_SEPARATOR) === 0) { return $path; }