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: Closed
    • Minor
    • Resolution: Won't Do
    • 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)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: