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

CSS file names aren't handled consistently between request and delivery

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3.5, 2.4.2
    • 2.4.1
    • Themes
    • MOODLE_24_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • wip-MDL-38000-m25
    • Hide
      1. Create a new theme based upon standard.
      2. Create a config file and within it define the minimum.
      3. Create a file theme/yourthemename/test.css and set to it: body {background-color:red !important}
      4. In your config file add "$THEME->sheets = array('../test');
      5. Browse to your site and switch to your theme.
      6. Enable theme designer mode if it is not already enabled.
      7. Purge your caches.
      8. Inspect the source for the CSS and check that the CSS from the test file was loaded correctly.
      Show
      Create a new theme based upon standard. Create a config file and within it define the minimum. Create a file theme/yourthemename/test.css and set to it: body {background-color:red !important} In your config file add "$THEME->sheets = array('../test'); Browse to your site and switch to your theme. Enable theme designer mode if it is not already enabled. Purge your caches. Inspect the source for the CSS and check that the CSS from the test file was loaded correctly.

      This is an obscure we bug that I hit while looking at how to include CSS from a 3rd party library within the theme directory but not within the theme/style directory.

      To replicate:

      1. Create a new theme based upon standard.
      2. Create a config file and within it define the minimum.
      3. Create a file theme/yourthemename/test.css and set to it: body {background-color:red !important}
      4. In your config file add "$THEME->sheets = array('../test');
      5. Browse to your site and switch to your theme.
      6. Inspect the source for the CSS and note there was an issue.

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Mary Evans Mary Evans
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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