mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
now passes the media files name to the print header function
This commit is contained in:
parent
7861d3ffe1
commit
804456766e
@ -23,12 +23,12 @@
|
|||||||
|
|
||||||
require_login($course->id, false, $cm);
|
require_login($course->id, false, $cm);
|
||||||
|
|
||||||
print_header();
|
|
||||||
|
|
||||||
// get the mimetype
|
// get the mimetype
|
||||||
$path_parts = pathinfo($lesson->mediafile);
|
$path_parts = pathinfo($lesson->mediafile);
|
||||||
$mimetype = mimeinfo("type", $path_parts['basename']);
|
$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) {
|
if (substr_count($lesson->mediafile, '//') == 1) {
|
||||||
// OK, taking a leap of faith here. We are assuming that teachers are cool
|
// OK, taking a leap of faith here. We are assuming that teachers are cool
|
||||||
// and thus the mediafile is a url
|
// and thus the mediafile is a url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user