Skip to content
Browse files

Fixed paths on includes (we must always use absolute paths because some

servers are buggy)
  • Loading branch information...
1 parent 219bd60 commit 36bf82baa57c9c0416dca0946c6fa675a65e3b8f moodler committed Apr 5, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/quiz/question.php
  2. +1 −1 mod/quiz/quizfile.php
View
2 mod/quiz/question.php
@@ -3,7 +3,7 @@
require_once("../../config.php");
require_once("lib.php");
- require_once("../../files/mimetypes.php");
+ require_once("$CFG->dirroot/files/mimetypes.php");
optional_variable($id); // question id
View
2 mod/quiz/quizfile.php
@@ -4,7 +4,7 @@
// It is supposed to be used by the quiz module only
require_once("../../config.php");
- require_once("../../files/mimetypes.php");
+ require_once("$CFG->dirroot/files/mimetypes.php");
require_once("lib.php");
$lifetime = 86400;

0 comments on commit 36bf82b

Please sign in to comment.
Something went wrong with that request. Please try again.