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

$CFG->themedir not defaulting to $CFG->dirroot . '/theme'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.3
    • Administration
    • MOODLE_23_STABLE

      according to the docs $CFG->themedir should default to $CFG->diroot . '/theme' when not set by a site administrator. Instead it is being set to NULL.

      Use the following code (defined in docs):

      (assuming /var/www/ for $CFG->dirroot)

      $var = $CFG->themedir .'/'. current_theme();
      echo $var;

      on a system with and without $CFG->themedir defined in config.php and look at the output for "Standard" theme:

      1) system with $CFG->themedir defined will output "/var/www/theme/standard"
      2) system without $CFG->themedir defined will output "/standard"

      expected result:

      both themes should output "/var/www/theme/standard"

            Unassigned Unassigned
            dwahl Daniel Wahl (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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