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

No preview when you edit utf8 help files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 1.6
    • 1.6
    • Language
    • None
    • All
    • MOODLE_16_STABLE
    • MOODLE_16_STABLE

      Preview doesn't work when translating help files because $forcelang param is filtered in help.php as PARAM_ALPHAEXT and then the '8' is removed from 'en_utf8'. Resulting $filepath is wrong:

      dataroot/lang/en_utf/help/accessibility.html

      > lib/moodlelib.php

      >

      > case PARAM_ALPHAEXT: // Remove everything not a-zA-Z/_-

      > return eregi_replace('[^a-zA-Z/_-]', '', $param);

            mudrd8mz David Mudrák (@mudrd8mz)
            imported Imported (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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