From f25f8f07010f945db53cd0fef37c4f7d76dca8fd 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. *