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

Multilang filter doesn't accept different attribute order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: Language
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      When creating a new multilang string, only one attribute order is accepted by the regular expression in filter/multilang/filter.php:48 :

      <span lang="en" class="multilang">Blah Blah</span>

      If the order of attributes is changed, the string doesn't get filtered at all.

      The task is to upgrade this regular expression so that the attributes (including any future additional attributes) can be entered by the course creator in any order.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              nicolasconnault Nicolas Connault
              Tester:
              Nicolas Martignoni
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07