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()
  3. MDL-34471

Replace get_context_instance with context_XXXX::instance() in set location (Cleanup issue)

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: Libraries
    • Labels:
    • Testing Instructions:
      Hide

      TEST1

      • Grep for get_context_instance() and make sure there is no valid usage in core beside the definition of the function.

      TEST2 - Forums

      • Try creating a forum
      • editing/updating/deleting a forum
      • updating/deleting/editing a discussion
      • updating/deleting/editing a reply

      TEST3 - Messages

      • Send messages to users
      • try updating/deleting/editing a reply

      TEST4 - Groups

      • try updating/deleting/editing/creating a group

      TEST5- Authentication

      • Try out enrolling users with various authentication methods that we support (ldap,ment etc)

      TEST6-(optional)

      • Hunt down an alien.
      • Force the alien to test everything in Moodle
      Show
      TEST1 Grep for get_context_instance() and make sure there is no valid usage in core beside the definition of the function. TEST2 - Forums Try creating a forum editing/updating/deleting a forum updating/deleting/editing a discussion updating/deleting/editing a reply TEST3 - Messages Send messages to users try updating/deleting/editing a reply TEST4 - Groups try updating/deleting/editing/creating a group TEST5- Authentication Try out enrolling users with various authentication methods that we support (ldap,ment etc) TEST6-(optional) Hunt down an alien. Force the alien to test everything in Moodle
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull Master Branch:
      MDL-34471-master

      Description

      Replace get_context_instance with context_XXXX::instance() in set location (Clean up)

      • Remove any remaining instances of the function get_context_instance from core.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/12