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

Lesson module incorrectly call format_text on text with urls not rewritten

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • FRONTEND
    • 2.5
    • Lesson
    • MOODLE_25_STABLE

      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

            jmvedrine Jean-Michel Vedrine
            jmvedrine Jean-Michel Vedrine
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.