Browse files

correction in require path for mimetypes

  • Loading branch information...
1 parent 3abd612 commit 3fa66675b372600e06070b750359345a3fecf29e skodak committed Feb 6, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/resource/type/directory/resource.class.php
View
4 mod/resource/type/directory/resource.class.php
@@ -18,8 +18,8 @@ function display() {
$course = $this->course;
$resource = $this->resource;
- require_once("../../files/mimetypes.php");
-
+ require_once("$CFG->dirroot/files/mimetypes.php");
+
$subdir = isset($_GET['subdir']) ? $_GET['subdir'] : '';
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);

0 comments on commit 3fa6667

Please sign in to comment.