Skip to content

Commit

Permalink
now passes the media files name to the print header function
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpenne committed Jun 16, 2005
1 parent 7861d3f commit 8044567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/lesson/mediafile.php
Expand Up @@ -23,12 +23,12 @@

require_login($course->id, false, $cm);

print_header();

// get the mimetype
$path_parts = pathinfo($lesson->mediafile);
$mimetype = mimeinfo("type", $path_parts['basename']);

print_header($path_parts['basename']); // or should it pass "Media File" and not the name?
if (substr_count($lesson->mediafile, '//') == 1) {
// OK, taking a leap of faith here. We are assuming that teachers are cool
// and thus the mediafile is a url
Expand Down

0 comments on commit 8044567

Please sign in to comment.