Prefer dirname rather than pathinfo

This commit is contained in:
Alexander Klimov 2014-06-24 15:57:13 +02:00
parent 33e69072b2
commit 3e31ff65a4
1 changed files with 1 additions and 1 deletions

View File

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