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

Lesson module incorrectly call format_text on text with urls not rewritten

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: FRONTEND
    • Component/s: Lesson
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE

      Description

      There are places where the lesson code incorrectly call format_text on lesson page content with urls not rewritten (urls that contain @@PLUGINFILE@@) since MDL-39490 was introduced this produce debugging developer warnings like
      Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls()
      We need to review all calls to format_text and were necessary call the lesson get_contents method which correctly call file_rewrite_pluginfile_urls before calling format_text

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmvedrine Jean-Michel Vedrine
              Reporter:
              jmvedrine Jean-Michel Vedrine
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: