Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3503

Fatal error if no custom languages present

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 2.2
    • Local: Flavours
    • None
    • Hide

      Create an empty lang folder under dataroot - however,language customisations then probably won't be included in flavour packages?

      Show
      Create an empty lang folder under dataroot - however,language customisations then probably won't be included in flavour packages?
    • MOODLE_22_STABLE
    • MOODLE_22_STABLE

    Description

      I use $CFG->langlocalroot and $CFG->langotherroot to point my Moodle install at an alternative location for language packs than $CFG->dataroot/lang so the lang folder does not exist at $CFG->dataroot.

      When I try to load the 'package a flavour' link in my browser, it eventually gives a time-out.

      By digging in the code a bit, I can see that the loop is being entered in get_system_customlangs() even though the opendir() on $this->langpath returned false.

      Attachments

        Activity

          People

            dmonllao David Monllaó
            jenny-gray Jenny Gray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5/Dec/11