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

page resource is using deprecated courseid in calling format_text

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4, 2.1.1
    • 2.0, 2.1, 2.2
    • Resource
    • None
    • Any
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      replace lines with
      $formatoptions = new stdClass;
      $formatoptions->noclean = true;
      $formatoptions->overflowdiv = true;
      $formatoptions->context = $context;
      $content = format_text($content, $page->contentformat, $formatoptions);

      Show
      replace lines with $formatoptions = new stdClass; $formatoptions->noclean = true; $formatoptions->overflowdiv = true; $formatoptions->context = $context; $content = format_text($content, $page->contentformat, $formatoptions);
    • Hide

      create a page resource with a content that show some filter action (for instance a word from the censor badwords list but the word censoship must be activated and remember administrators can see badwords)
      verify the badword is correctly filtered
      Disable the Word censorship filter at resource level
      The filter is still active
      After correction the filter is correctly deactivated

      Show
      create a page resource with a content that show some filter action (for instance a word from the censor badwords list but the word censoship must be activated and remember administrators can see badwords) verify the badword is correctly filtered Disable the Word censorship filter at resource level The filter is still active After correction the filter is correctly deactivated

      See in mod/page/view.php lines 95-96
      $formatoptions = array('noclean'=>true, 'overflowdiv'=>true);
      $content = format_text($content, $page->contentformat, $formatoptions, $course->id);

            poltawski Dan Poltawski
            jmvedrine Jean-Michel Vedrine
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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