Forgot to add a require for lesson's locallib.php and change a require from quiz's lib.php to quiz's locallib.php
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
require_once("../../config.php");
|
||||
require_once("lib.php");
|
||||
require_once("locallib.php");
|
||||
|
||||
$id = required_param('id', PARAM_INT); // Course Module ID
|
||||
$pageid = optional_param('pageid', '', PARAM_INT); // Page ID
|
||||
@@ -50,7 +51,7 @@
|
||||
}
|
||||
|
||||
require("format.php"); // Parent class
|
||||
require("$CFG->dirroot/mod/quiz/lib.php"); // for the constants used in quiz/format/<format>/format.php
|
||||
require("$CFG->dirroot/mod/quiz/locallib.php"); // for the constants used in quiz/format/<format>/format.php
|
||||
require("$CFG->dirroot/mod/quiz/format/$form->format/format.php");
|
||||
|
||||
$classname = "quiz_format_$form->format";
|
||||
|
||||
Reference in New Issue
Block a user