diff --git a/bookquiz/view.php b/bookquiz/view.php index 9d7cee6..e16408a 100644 --- a/bookquiz/view.php +++ b/bookquiz/view.php @@ -39,7 +39,7 @@ if (!$book = $DB->get_record('book', array( 'id' => $cm->instance))) { require_course_login($course, true, $cm); -$context = get_context_instance(CONTEXT_MODULE, $cm->id); +$context = game_get_context_module_instance( $cm->id); // Read chapters. $select = $allowedit ? "bookid = $book->id" : "bookid = $book->id AND hidden = 0"; diff --git a/lib.php b/lib.php index 0abcee6..c854423 100644 --- a/lib.php +++ b/lib.php @@ -689,8 +689,6 @@ function game_supports($feature) { return true; case FEATURE_COMPLETION_HAS_RULES: return true; - case FEATURE_GRADE_HAS_GRADE: - return true; case FEATURE_GRADE_OUTCOMES: return true; case FEATURE_RATE: