Fixed some notices, thanks Eloy!

This commit is contained in:
moodler
2004-08-01 06:37:12 +00:00
parent 427c8ccb1a
commit d43730d8ab
+1 -2
View File
@@ -209,6 +209,7 @@ function display() {
$resourcetype = '';
$embedded = false;
$mimetype = mimeinfo("type", $this->resource->reference);
$pagetitle = strip_tags($this->course->shortname.': '.$this->resource->name);
if ($this->resource->options != "frame") {
if (in_array($mimetype, array('image/gif','image/jpeg','image/png'))) { // It's an image
@@ -280,8 +281,6 @@ function display() {
if ($this->resource->popup and !$inpopup) { /// Make a page and a pop-up window
$pagetitle = strip_tags($this->course->shortname.': '.$this->resource->name);
print_header($pagetitle, $this->course->fullname, "$navigation {$this->resource->name}", "", "", true, update_module_button($this->cm->id, $this->course->id, $strresource), navmenu($this->course, $this->cm));