From d43730d8ab6b7b28f77e7be202884238bccf71df Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 1 Aug 2004 06:37:12 +0000 Subject: [PATCH] Fixed some notices, thanks Eloy! --- mod/resource/type/file/resource.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php index acef107a6a..5b52e83daa 100644 --- a/mod/resource/type/file/resource.class.php +++ b/mod/resource/type/file/resource.class.php @@ -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)); -- 2.39.5