From: moodler Date: Fri, 20 Feb 2004 03:31:02 +0000 (+0000) Subject: Add some feedback and instructions for other platforms X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6b0a2ff4a540749291f9be9ebac47168a83738e4;p=moodle.git Add some feedback and instructions for other platforms --- diff --git a/filter/algebra/pix.php b/filter/algebra/pix.php index 564f9bee1e..c74d17692f 100644 --- a/filter/algebra/pix.php +++ b/filter/algebra/pix.php @@ -61,6 +61,14 @@ $cmd = "$CFG->dirroot/$CFG->texfilterdir/mimetex.darwin -e $pathname ". escapeshellarg($texexp); break; default: /// To allow drop-in binaries for other platforms + if (!is_executable("$CFG->dirroot/$CFG->texfilterdir/mimetex")) { + echo "Make sure you have an appropriate MimeTeX binary here:\n\n"; + echo " $CFG->dirroot/$CFG->texfilterdir/mimetex\n\n"; + echo "and that it has the right permissions set on it as executable program.\n\n"; + echo "You can get the latest binaries for your ".PHP_OS." platform from: \n\n"; + echo " http://moodle.org/download/mimetex/"; + exit; + } $cmd = "$CFG->dirroot/$CFG->texfilterdir/mimetex -e $pathname ". escapeshellarg($texexp); break; } diff --git a/filter/tex/pix.php b/filter/tex/pix.php index 9ff4fcc279..c910eccf71 100644 --- a/filter/tex/pix.php +++ b/filter/tex/pix.php @@ -60,6 +60,14 @@ $cmd = "$CFG->dirroot/$CFG->texfilterdir/mimetex.darwin -e $pathname ". escapeshellarg($texexp); break; default: /// To allow drop-in binaries for other platforms + if (!is_executable("$CFG->dirroot/$CFG->texfilterdir/mimetex")) { + echo "Make sure you have an appropriate MimeTeX binary here:\n\n"; + echo " $CFG->dirroot/$CFG->texfilterdir/mimetex\n\n"; + echo "and that it has the right permissions set on it as executable program.\n\n"; + echo "You can get the latest binaries for your ".PHP_OS." platform from: \n\n"; + echo " http://moodle.org/download/mimetex/"; + exit; + } $cmd = "$CFG->dirroot/$CFG->texfilterdir/mimetex -e $pathname ". escapeshellarg($texexp); break; }