From 4a723a329eaf82bad0360f6fd3701a534c26208b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 7 May 2020 21:04:18 +0200 Subject: [PATCH] MDL-68647 forum: Add missing advanced grading library inclusion The method get_grading_manager() is called in the file so make sure the library is loaded. Without it, the forum's privacy provider unit test ended with error. Not directly related to the issue, but noticed while working on it. --- mod/forum/classes/privacy/provider.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mod/forum/classes/privacy/provider.php b/mod/forum/classes/privacy/provider.php index 06466e67df7..49da231aafd 100644 --- a/mod/forum/classes/privacy/provider.php +++ b/mod/forum/classes/privacy/provider.php @@ -37,6 +37,8 @@ use tool_dataprivacy\context_instance; defined('MOODLE_INTERNAL') || die(); +require_once($CFG->dirroot . '/grade/grading/lib.php'); + /** * Implementation of the privacy subsystem plugin provider for the forum activity module. *