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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Affected Branches:
      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

              Assignee:
              Unassigned
              Reporter:
              mudrd8mz David Mudrák (@mudrd8mz)
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: