Prefer dirname rather than pathinfo
This commit is contained in:
parent
33e69072b2
commit
3e31ff65a4
|
@ -169,7 +169,7 @@ class Config extends Zend_Config
|
||||||
throw new ProgrammingError('Windows support has not yet been implemented');
|
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;
|
return $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue