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

Fallback to theme_config::DEFAULT_THEME if a theme (or parent) does not exist.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6
    • 2.6
    • Themes
    • MOODLE_26_STABLE
    • MOODLE_26_STABLE
    • MDL-41604-master-5
    • Hide

      Setup

      1. Unzip themeA.zip into your theme folder.
      2. Go to admin page to install the themes (note that these themes are CSS broken, they are just used for testing themes extending the mymobile theme)
      3. Visit Admin > Themes > Theme settings and enable allowcoursethemes, allowcategorythemes and allowuserthemes.
      4. Edit a course and set 'Force theme' to Boxxie2.
      5. Edit your use profile and set 'Preferred theme' to MyMobile. (if you try to access the course from the front page you'll discover MDL-42074, just mention in case you wonder if it's cause by this code, it's not, the issue exist in 2.5 )

      Test

      1. apply the patch from MDL-40874
      2. upgrade
      3. confirm that the front page and the course page fallback to standard theme.
      Show
      Setup Unzip themeA.zip into your theme folder. Go to admin page to install the themes (note that these themes are CSS broken, they are just used for testing themes extending the mymobile theme) Visit Admin > Themes > Theme settings and enable allowcoursethemes, allowcategorythemes and allowuserthemes. Edit a course and set 'Force theme' to Boxxie2. Edit your use profile and set 'Preferred theme' to MyMobile. (if you try to access the course from the front page you'll discover MDL-42074 , just mention in case you wonder if it's cause by this code, it's not, the issue exist in 2.5 ) Test apply the patch from MDL-40874 upgrade confirm that the front page and the course page fallback to standard theme.
    • 13
    • FRONTEND Sprint 6

      1. If a theme has been selected that does not physically exist we fall back to theme_config::DEFAULT_THEME.
      2. Do the same if one of theme's parent is missing.

            jerome Jérôme Mouneyrac
            jerome Jérôme Mouneyrac
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Dan Poltawski Dan Poltawski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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