Fixed paths on includes (we must always use absolute paths because some
servers are buggy)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user