[Aimmath-commit] moodle/mod/math_assignment/moodletex index.php,1.1,1.2
Brought to you by:
gustav_delius,
npstrick
From: Gustav W D. <gus...@us...> - 2004-03-21 11:54:31
|
Update of /cvsroot/aimmath/moodle/mod/math_assignment/moodletex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5544/moodletex Modified Files: index.php Log Message: makes sure log file gets displayed when error occurs during pdflatex Index: index.php =================================================================== RCS file: /cvsroot/aimmath/moodle/mod/math_assignment/moodletex/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 16 Nov 2003 18:38:24 -0000 1.1 --- index.php 21 Mar 2004 11:44:23 -0000 1.2 *************** *** 47,51 **** $errlog = shell_exec("$texcommand $tempfile"); ! if (!file_exists("$tempfile.pdf")) { echo "There was a problem while compiling the tex source!<br> pdflatex wrote the following log:<br><br> --- 47,51 ---- $errlog = shell_exec("$texcommand $tempfile"); ! if (!file_exists("$tempfile.pdf") or strstr($errlog, 'Fatal error')) { echo "There was a problem while compiling the tex source!<br> pdflatex wrote the following log:<br><br> |