mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
use PATH_SEPARATOR and DIRECTORY_SEPARATOR
This commit is contained in:
parent
633ae6e7e6
commit
05d51c05bd
|
@ -818,10 +818,10 @@ class Settings { /* {{{ */
|
|||
* @return string path where file was found
|
||||
*/
|
||||
function findInIncPath($file) { /* {{{ */
|
||||
$incarr = explode(':', ini_get('include_path'));
|
||||
$incarr = explode(PATH_SEPARATOR, ini_get('include_path'));
|
||||
$found = '';
|
||||
foreach($incarr as $path) {
|
||||
if(file_exists($path.'/'.$file)) {
|
||||
if(file_exists($path.DIRECTORY_SEPARATOR.$file)) {
|
||||
$found = $path;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user