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

$CFG->admin not working due to plugins not being installed properly.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.10.4
    • None
    • Administration
    • MOODLE_310_STABLE

    Description

      I was testing out the $CFG->admin setting and couldn't get through the install. It would hit the plugins list and say they were missing from disk.

      I did some investigating and it's because we use the wrong substring in lib/classes/component.php

      It's a simple fix.

      Change fetch_plugintypes()

      $path = $CFG->admin . substr($path, 0, 5);
       

      to

      $path = $CFG->admin . substr($path, 5);
      

      I'm surprised this hasn't been reported. I guess no one uses that config setting.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abgreeve Adrian Greeve
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: