From 292df9f613f986c664669174bdd4fbd2feabce16 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 31 Aug 2018 12:35:12 +0200 Subject: [PATCH] MDL-48846 filter: Stop reffering to invalid moodle.org/download/mimetex --- filter/algebra/algebradebug.php | 13 ++----------- filter/tex/lib.php | 9 --------- filter/tex/texdebug.php | 11 +---------- lang/en/error.php | 2 +- 4 files changed, 4 insertions(+), 31 deletions(-) diff --git a/filter/algebra/algebradebug.php b/filter/algebra/algebradebug.php index 52cf0680eb2..cf5bf96d79f 100644 --- a/filter/algebra/algebradebug.php +++ b/filter/algebra/algebradebug.php @@ -338,17 +338,8 @@ Mathematics Tools forum in the Using Moodle course on moodle.org. running Unix, a likely cause is that the mimetex binary you are using is incompatible with your operating system. You can try compiling it from the C sources downloaded from -http://www.forkosh.com/mimetex.zip, or looking for an appropriate -binary at -http://moodle.org/download/mimetex/. You may then also need to -edit your moodle/filter/algebra/pix.php file to add -

to the list of operating systems -in the switch (PHP_OS) statement. Windows users may have a problem properly -unzipping mimetex.exe. Make sure that mimetex.exe is is PRECISELY -433152 bytes in size. If not, download fresh copy from - -http://moodle.org/download/mimetex/windows/mimetex.exe. Lastly check -the execute permissions on your mimetex binary, as outlined in item 2 above. +http://www.forkosh.com/mimetex.zip. Lastly check the execute permissions +on your mimetex binary, as outlined in item 2 above. diff --git a/filter/tex/lib.php b/filter/tex/lib.php index 4aad3ec543f..f579fa56239 100644 --- a/filter/tex/lib.php +++ b/filter/tex/lib.php @@ -29,15 +29,6 @@ defined('MOODLE_INTERNAL') || die(); function filter_tex_get_executable($debug=false) { global $CFG; - $error_message1 = "Your system is not configured to run mimeTeX. You need to download the appropriate
" - ."executable for you ".PHP_OS." platform from " - ."http://moodle.org/download/mimetex/, or obtain the C source
" - ."from " - ."http://www.forkosh.com/mimetex.zip, compile it and " - ."put the executable into your
moodle/filter/tex/ directory."; - - $error_message2 = "Custom mimetex is not executable!

"; - if ((PHP_OS == "WINNT") || (PHP_OS == "WIN32") || (PHP_OS == "Windows")) { return "$CFG->dirroot/filter/tex/mimetex.exe"; } diff --git a/filter/tex/texdebug.php b/filter/tex/texdebug.php index e713d57a58f..dadbe186183 100644 --- a/filter/tex/texdebug.php +++ b/filter/tex/texdebug.php @@ -377,16 +377,7 @@ If this fails or is not available, the Mimetex executable is tried. If this fails a likely cause is that the mimetex binary you are using is incompatible with your operating system. You can try compiling it from the C sources downloaded from -http://www.forkosh.com/mimetex.zip, or looking for an appropriate -binary at -http://moodle.org/download/mimetex/. You may then also need to -edit your moodle/filter/tex/pix.php file to add -

to the list of operating systems -in the switch (PHP_OS) statement. Windows users may have a problem properly -unzipping mimetex.exe. Make sure that mimetex.exe is is PRECISELY -433152 bytes in size. If not, download a fresh copy from - -http://moodle.org/download/mimetex/windows/mimetex.exe. +http://www.forkosh.com/mimetex.zip. Another possible problem which may affect both Unix and Windows servers is that the web server doesn't have execute permission on the mimetex binary. In that case change permissions accordingly diff --git a/lang/en/error.php b/lang/en/error.php index f15f401e74d..95b945050ce 100644 --- a/lang/en/error.php +++ b/lang/en/error.php @@ -383,7 +383,7 @@ $string['loginasonecourse'] = 'You cannot enter this course.
You have to t $string['maxbytesfile'] = 'The file {$a->file} is too large. The maximum size you can upload is {$a->size}.'; $string['maxareabytes'] = 'The file is larger than the space remaining in this area.'; $string['messagingdisable'] = 'Messaging is disabled on this site'; -$string['mimetexisnotexist'] = 'Your system is not configured to run mimeTeX. You need to download the appropriate executable for you PHP_OS platform from http://moodle.org/download/mimetex/, or obtain the C source from http://www.forkosh.com/mimetex.zip, compile it and put the executable into your moodle/filter/tex/ directory.'; +$string['mimetexisnotexist'] = 'Your system is not configured to run mimeTeX. You need to obtain the C source from http://www.forkosh.com/mimetex.zip, compile it and put the executable into your moodle/filter/tex/ directory.'; $string['mimetexnotexecutable'] = 'Custom mimetex is not executable!'; $string['missingfield'] = 'Field "{$a}" is missing'; $string['missingkeyinsql'] = 'ERROR: missing param "{$a}" in query'; -- 2.43.0