use fixed value for the replacement as DIRECTORY_SEPARATOR changes per platform

This commit is contained in:
Matthew Vale 2015-12-01 11:44:24 +00:00
parent d520226c87
commit 42e9771791
1 changed files with 2 additions and 1 deletions

View File

@ -601,8 +601,9 @@
//echo realpath(sys_get_temp_dir());
if ( !function_exists('normalize_path')) {
//don't use DIRECTORY_SEPARATOR as it will change on a per platform basis and we need consistency
function normalize_path($path) {
return str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $path);
return str_replace(array('/','\\'), '/', $path);
}
}