now passes the media files name to the print header function

This commit is contained in:
michaelpenne 2005-06-16 17:17:58 +00:00
parent 7861d3ffe1
commit 804456766e

View File

@ -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