From 0fe269291e17f7ee9b60f170938008b802ace74b Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Wed, 4 Apr 2018 08:56:23 +0800 Subject: [PATCH] MDL-61751 core_plagiarism: fix fatal error with privacy legacy polyfill --- plagiarism/classes/privacy/plagiarism_provider.php | 5 +---- plagiarism/tests/privacy_legacy_polyfill_test.php | 5 ++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plagiarism/classes/privacy/plagiarism_provider.php b/plagiarism/classes/privacy/plagiarism_provider.php index 2d8eb30845a..1440c4fb839 100644 --- a/plagiarism/classes/privacy/plagiarism_provider.php +++ b/plagiarism/classes/privacy/plagiarism_provider.php @@ -34,10 +34,7 @@ defined('MOODLE_INTERNAL') || die(); */ interface plagiarism_provider extends // The plagiarism_provider should be implemented by plugins which only provide information to a subsystem. - \core_privacy\local\request\plugin\subsystem_provider, - - // All plagiarism plugins should also implement the metadata provider. - \core_privacy\local\metadata\provider { + \core_privacy\local\request\plugin\subsystem_provider { /** * Export all plagiarism data from each plagiarism plugin for the specified userid and context. diff --git a/plagiarism/tests/privacy_legacy_polyfill_test.php b/plagiarism/tests/privacy_legacy_polyfill_test.php index c016f6d70ba..1220805dbc2 100644 --- a/plagiarism/tests/privacy_legacy_polyfill_test.php +++ b/plagiarism/tests/privacy_legacy_polyfill_test.php @@ -94,9 +94,12 @@ class core_plagiarism_privacy_legacy_polyfill_test extends advanced_testcase { * @copyright 2018 Jake Dallimore * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class test_legacy_polyfill_plagiarism_provider implements \core_plagiarism\privacy\plagiarism_provider { +class test_legacy_polyfill_plagiarism_provider implements + \core_privacy\local\metadata\provider, + \core_plagiarism\privacy\plagiarism_provider { use \core_plagiarism\privacy\legacy_polyfill; + use \core_privacy\local\legacy_polyfill; /** * @var test_legacy_polyfill_plagiarism_provider $mock.