From 7a85562ef1b29ae3fecb0076ec1d4a3fb046611e Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 20 Dec 2007 21:37:49 +0000 Subject: [PATCH] MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry; merged from MOODLE_19_STABLE --- filter/tex/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/tex/lib.php b/filter/tex/lib.php index 9fbcf7e60c..76d6309e1e 100644 --- a/filter/tex/lib.php +++ b/filter/tex/lib.php @@ -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"; -- 2.39.5