moodle-logstore_xapi icon indicating copy to clipboard operation
moodle-logstore_xapi copied to clipboard

#857 - prevent deprecation warnings shown in all admin pages

Open jpahullo opened this issue 9 months ago • 0 comments

Description

  • When a Moodle site has $CFG->debugusers, Moodle core considers these users as with forced debugging. As a consequence, having this plugin installed on the Moodle, and having $CFG->debugusers with some users, these users will see deprecation messages from any event on every admin pages (i.e., any page below Administration menu).
  • In the same way that Moodle core tries to prevent deprecation messages while calculating the list of events, we propose to backup the value $CFG->debugusers before calculating the list of events, and re-assigning them after this calculation.
  • We believe this patch is appropiate for this plugin, since this plugin being installed is what makes the deprecation messages being shown in all and every admin pages for those $CFG->debugusers.

Related Issues

  • #857

PR Type

  • Fix

jpahullo avatar May 23 '24 09:05 jpahullo