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

deprecated context_instance_preload() still used in forum and enrollib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.4.6, 2.5.2
    • Component/s: Forum
    • Labels:

      Description

      1. As a user create some forum posts
      2. Go to: Home / My profile / Forum posts / Posts

      Boom:

      context_instance_preload() is deprecated, please use context_helper::preload_from_record() instead.
      line 4135 of /lib/deprecatedlib.php: call to debugging()
      line ? of unknownfile: call to context_instance_preload()
      line 8137 of /mod/forum/lib.php: call to array_map()
      line 117 of /mod/forum/user.php: call to forum_get_courses_user_posted_in()
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              poltawski Dan Poltawski
              Peer reviewer:
              Sam Hemelryk
              Integrator:
              Damyon Wiese
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Sep/13