mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
On windows force to / instead of the backslash \ as path. This fixes a problem where recording c:\pathtofusionpbx\recordings fails because the \r gets understood as a carriage return in the session:record in FreeSWITCH.
This commit is contained in:
@@ -60,7 +60,7 @@ class scripts {
|
||||
if (stristr(PHP_OS, 'WIN')) { $IS_WINDOWS = true; } else { $IS_WINDOWS = false; }
|
||||
}
|
||||
if ($IS_WINDOWS) {
|
||||
return str_replace('/', '\\', $path);
|
||||
return str_replace('\\', '/', $path);
|
||||
}
|
||||
return $path;
|
||||
}
|
||||
@@ -261,8 +261,13 @@ class scripts {
|
||||
}
|
||||
} //end config_lua
|
||||
|
||||
|
||||
|
||||
} //end scripts class
|
||||
|
||||
/*
|
||||
//example use
|
||||
|
||||
//update config.lua
|
||||
$obj = new scripts;
|
||||
$obj->write_config();
|
||||
*/
|
||||
?>
|
||||
Reference in New Issue
Block a user