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

adminlib: get_component_version() does not always use the plugin manager

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0
    • None
    • Administration
    • None
    • MOODLE_30_STABLE

    Description

      I discovered by accident that get_component_version() function in the adminlib.php does not use the plugin manager features designed exactly for this.

      Additionally, it looks like this function is used at only three places at the moment. So, the suggestion is to:

      • Rewrite the function so that it uses the plugin manager
      • Rewrite all three places using it to use the plugin manager directly instead
      • Deprecate and eventually remove this function completely

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mudrd8mz David Mudrák (@mudrd8mz)
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: