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

Discrepancies between plugins declared in get_plugin_types() and detected by get_db_directories()

    XMLWordPrintable

    Details

    • Database:
      Any
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Right now we have one core function:

      get_plugin_types()

      that returns all the plugins supported by moodle. It's used in upgrade code to look for upgrades under all plugins.

      In the other side, we have the function:

      get_db_directories()

      that returns all the directories where we can found database install/upgrade scripts (used by the xmldb editor, database manager...)

      And right now, both functions are 100% separate, having to keep such lists maintained manually.

      Solution: Let's modify get_db_directories() in order to use get_plugin_types() to know about all the dirs being candidates to have install/upgrade/xmldb editor... scripts recognising the same plugins always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Petr Skoda Petr Skoda
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10