]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry; merged...
authorskodak <skodak>
Thu, 20 Dec 2007 21:37:49 +0000 (21:37 +0000)
committerskodak <skodak>
Thu, 20 Dec 2007 21:37:49 +0000 (21:37 +0000)
filter/tex/lib.php

index 9fbcf7e60c6704fb6be032dc609727fd2ccafd18..76d6309e1ef31f916308b92b082f2a934985cb02 100644 (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";