1
0
mirror of https://github.com/PlagiarismCheck/moodle-plagiarism_pchkorg.git synced 2024-12-22 12:10:08 +00:00

Add support for PHP 5.6 and Privacy API

This commit is contained in:
Jane Adelmann 2019-01-30 16:56:56 +02:00
parent d0a21caea2
commit 82bbc85fd6
No known key found for this signature in database
GPG Key ID: 4CCF39DF30B8AF72

View File

@ -20,8 +20,14 @@ defined('MOODLE_INTERNAL') || die();
use core_privacy\local\metadata\collection; use core_privacy\local\metadata\collection;
class provider implements \core_privacy\local\metadata\provider { class provider implements
public static function get_metadata(collection $collection): collection { \core_privacy\local\metadata\provider,
\core_privacy\local\request\plugin\provider {
// This trait must be included.
use \core_privacy\local\legacy_polyfill;
public static function _get_metadata(collection $collection) {
$collection->add_subsystem_link( $collection->add_subsystem_link(
'core_files', 'core_files',