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

META : Remove deprecated api function get_context_instance() and replace calls with context_XXX::instance()

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Libraries
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      The get_context_instance() function was marked as deprecated in 2.1.

      We need to change any call to get_context_instance() to context_xxxx::instance() and then remove the get_context_instance() itself.

      There are other library functions that utilise this call. They should be changed over as well.

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: