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

in lib/weblib.php function format_text_email() still accepts FORMAT_WIKI, which calls undefined function wiki_to_html()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 1.9.10, 2.0
    • 1.9.8
    • Libraries
    • None
    • MOODLE_19_STABLE
    • MOODLE_19_STABLE, MOODLE_20_STABLE
    • Easy

      in lib/weblib.php the following code segment needs updating to reflect deprecated and removed function:
      lines 1789 - 1795

          case FORMAT_WIKI:
                  $text = wiki_to_html($text);
              /// This expression turns links into something nice in a text format. (Russell Jungwirth)
              /// From: http://php.net/manual/en/function.eregi-replace.php and simplified
                  $text = eregi_replace('(<a [^<]*href=["|\']?([^ "\']*)["|\']?[^>]*>([^<]*)</a>)','\\3 [ \\2 ]', $text);
                  return strtr(strip_tags($text), array_flip(get_html_translation_table(HTML_ENTITIES)));
                  break;

      The wiki_to_html() function has been removed and throws a fatal error.

            skodak Petr Skoda
            mavelar Michael Avelar (Inactive)
            Nobody Nobody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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