MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2007-12-20 21:37:49 +00:00
parent 00ed8abd19
commit 7a85562ef1

View File

@ -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";