diff --git a/filter/algebra/algebradebug.php b/filter/algebra/algebradebug.php index 047bf873ce8..afb060b954c 100644 --- a/filter/algebra/algebradebug.php +++ b/filter/algebra/algebradebug.php @@ -60,14 +60,10 @@ $output = algebra2tex($algebra); $output = refineTeX($output); } - if ($action == 'ShowImage'|| $action == 'SlashArguments') { + if ($action == 'ShowImage') { $output = algebra2tex($algebra); $output = refineTeX($output); - if ($action == 'ShowImage') { - tex2image($output, $md5); - } else { - slasharguments($output, $md5); - } + tex2image($output, $md5); } else { outputText($output); } @@ -252,23 +248,6 @@ function tex2image($texexp, $md5, $return=false) { } } -function slasharguments($texexp, $md5) { - global $CFG; - $admin = $CFG->wwwroot.'/'.$CFG->admin.'/settings.php?section=http'; - $image = tex2image($texexp,$md5,true); - echo "

If the following image displays correctly, set your "; - echo "Administration->Server->HTTP "; - echo "setting for slasharguments to file.php/1/pic.jpg: "; - echo "

\n"; - echo "

Otherwise set it to file.php?file=/1/pic.jpg "; - echo "It should display correctly as "; - echo "

\n"; - echo "

If neither equation image displays correctly, please seek "; - echo "further help at moodle.org at the "; - echo ""; - echo "Mathematics Tools Forum

"; -} - ?> @@ -294,8 +273,6 @@ function slasharguments($texexp, $md5) { A more refined translation into TeX will appear in the box below.
  • Then click on this button to show a graphic image of the algebraic expression.
  • -
  • Finally check your slash arguments setting -


  • diff --git a/filter/algebra/classes/text_filter.php b/filter/algebra/classes/text_filter.php index 63a6064db61..574d1285ced 100644 --- a/filter/algebra/classes/text_filter.php +++ b/filter/algebra/classes/text_filter.php @@ -230,12 +230,7 @@ class text_filter extends \core_filters\text_filter { $anchorcontents = ''; if ($imagefile) { $anchorcontents .= "\""slasharguments) { - // Use this method if possible for better caching. - $anchorcontents .= "$CFG->wwwroot/filter/algebra/pix.php/$imagefile"; - } else { - $anchorcontents .= "$CFG->wwwroot/filter/algebra/pix.php?file=$imagefile"; - } + $anchorcontents .= "$CFG->wwwroot/filter/algebra/pix.php/$imagefile"; $anchorcontents .= "\" $style />"; $imagefound = file_exists("$CFG->dataroot/filter/algebra/$imagefile");