Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-22564

Output problem in Tex filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Filters
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Tex filter of latest moodle 2.0 seems to be broken.

      Line 96 in filter/tex/filter.php and function string_file_picture_tex should probably use $anchorcontents as

      $output .= $OUTPUT->action_link($link, $anchorcontents, $action, array('title'=>'TeX'));

      instead of current $anchortagcontents in

      $output .= $OUTPUT->action_link($link, $anchortagcontents, $action, array('title'=>'TeX'));

      and line 40 might need global $OUTPUT:

      global $CFG, $OUTPUT;

      to render tex.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  24/Nov/10