]> git.mjollnir.org Git - moodle.git/commitdiff
Add some feedback and instructions for other platforms
authormoodler <moodler>
Fri, 20 Feb 2004 03:31:02 +0000 (03:31 +0000)
committermoodler <moodler>
Fri, 20 Feb 2004 03:31:02 +0000 (03:31 +0000)
filter/algebra/pix.php
filter/tex/pix.php

index 564f9bee1e28fa042339f10e12d82ecbc3f9b6fc..c74d17692fc4980d8ca4463628def2dac41a4a75 100644 (file)
                     $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;
             }
index 9ff4fcc279d9ba8e6cc8f1d32b44fb00ba630389..c910eccf71423981d5d384d04f67a3cc62847272 100644 (file)
                     $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;
             }