/**
* Serves the data attachments. Implements needed access control ;-)
*
- * @global object
- * @global object
* @param object $course
* @param object $cminfo
* @param object $context
- * @param string filearea
+ * @param string $filearea
* @param array $args
- * @return bool
+ * @param bool $forcedownload
+ * @return bool false if file not found, does not return if found - justsend the file
*/
-function data_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function data_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG, $DB;
if (!$cminfo->uservisible) {
* @param object $context
* @param string $filearea
* @param array $args
- * @return bool
+ * @param bool $forcedownload
+ * @return bool false if file not found, does not return if found - justsend the file
*/
-function forum_pluginfile($course, $cminfo, $context, $filearea, $args) {
+function forum_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG, $DB;
if (!$cminfo->uservisible) {
* @param string $filearea
* @param array $args
* @param bool $forcedownload
- * @return bool falso if file not found, does not return if found - just send the file
+ * @return bool false if file not found, does not return if found - justsend the file
*/
function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG, $DB;
* @param string $filearea
* @param array $args
* @param bool $forcedownload
- * @return bool falso if file not found, does not return if found - justsend the file
+ * @return bool false if file not found, does not return if found - just send the file
*/
function scorm_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG;