From e1f374611257ff22982d38fa8a69321c80db62e8 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Mon, 31 Aug 2020 12:40:38 +0800 Subject: [PATCH] MDL-69269 contentbank: Fix issues identified in integration --- contentbank/classes/contenttype.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/contentbank/classes/contenttype.php b/contentbank/classes/contenttype.php index 614dd4ed958..57bf4248611 100644 --- a/contentbank/classes/contenttype.php +++ b/contentbank/classes/contenttype.php @@ -40,15 +40,16 @@ use moodle_url; */ abstract class contenttype { - /** Plugin implements uploading feature */ + /** @var string Constant representing whether the plugin implements uploading feature */ const CAN_UPLOAD = 'upload'; - /** Plugin implements edition feature */ + /** @var string Constant representing whether the plugin implements edition feature */ const CAN_EDIT = 'edit'; - /** Plugin implements download feature - * @since Moodle 3.10 - */ + /** + * @var string Constant representing whether the plugin implements download feature + * @since Moodle 3.10 + */ const CAN_DOWNLOAD = 'download'; /** @var \context This contenttype's context. **/ @@ -236,7 +237,7 @@ abstract class contenttype { $downloadurl = ''; $file = $content->get_file(); if (!empty($file)) { - $url = \moodle_url::make_pluginfile_url( + $url = \moodle_url::make_pluginfile_url( $file->get_contextid(), $file->get_component(), $file->get_filearea(),