Skip to content

Commit

Permalink
MDL-14589 improved _pluginfile function - added forcedownload param a…
Browse files Browse the repository at this point in the history
…nd fixed docs
  • Loading branch information
skodak committed Jul 3, 2009
1 parent 6c79b09 commit 98edf7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions mod/glossary/lib.php
Expand Up @@ -1305,11 +1305,15 @@ function glossary_get_file_areas($course, $cm, $context) {
/**
* Serves the glossary attachments. Implements needed access control ;-)
*
* @global object
* @global object
* @return bool
* @param object $course
* @param object $cminfo
* @param object $context
* @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
*/
function glossary_pluginfile($course, $cminfo, $context, $filearea, $args) {
function glossary_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG, $DB;

if (!$cminfo->uservisible) {
Expand Down
6 changes: 3 additions & 3 deletions mod/scorm/lib.php
Expand Up @@ -847,15 +847,15 @@ public function get_visible_name() {
/**
* Serves scorm content, introduction images and packages. Implements needed access control ;-)
*
* @global stdClass
* @param object $course
* @param object $cminfo
* @param object $context
* @param string $filearea
* @param array $args
* @return bool
* @param bool $forcedownload
* @return bool falso if file not found, does not return if found - justsend the file
*/
function scorm_pluginfile($course, $cminfo, $context, $filearea, $args) {
function scorm_pluginfile($course, $cminfo, $context, $filearea, $args, $forcedownload) {
global $CFG;

if (!$cminfo->uservisible) {
Expand Down

0 comments on commit 98edf7b

Please sign in to comment.