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

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

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_23_STABLE

      Description

      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"

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: