mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry; merged from MOODLE_19_STABLE
This commit is contained in:
parent
00ed8abd19
commit
7a85562ef1
@ -40,8 +40,8 @@ function tex_filter_get_cmd($pathname, $texexp) {
|
||||
$executable = tex_filter_get_executable(false);
|
||||
|
||||
if ((PHP_OS == "WINNT") || (PHP_OS == "WIN32") || (PHP_OS == "Windows")) {
|
||||
$cmd = str_replace(' ', '^ ', $executable);
|
||||
return " ++ -e \"$pathname\" -- $texexp";
|
||||
$executable = str_replace(' ', '^ ', $executable);
|
||||
return "$executable ++ -e \"$pathname\" -- $texexp";
|
||||
|
||||
} else {
|
||||
return "\"$executable\" -e \"$pathname\" -- $texexp";
|
||||
|
Loading…
x
Reference in New Issue
Block a user