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

Error with preg_replace with theme css

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Themes
    • Labels:
      None
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      The preg_replace in theme/yui_combo.php does not take into account images that have numbers in their name. Example image: lib/yui/2.8.2/build/treeview/assets/skins/sam/treeview.css there are images check0.gif, check1.gif, check2.gif.

      The way I fixed it was to look for trailing numbers, but I don't think this is the best solution. Example:

      '/([a-z_-]+[0-9]*)\.(png|gif)/'

      I tried:

      '/([a-z_-0-9]+)\.(png|gif)/'

      But that didn't seem to work.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Feb/11