Skip to content

Commit

Permalink
Fix Moodle 3.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bdaloukas committed Sep 17, 2016
1 parent 8ca0c4d commit ac04eea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion bookquiz/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

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";
Expand Down
2 changes: 0 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac04eea

Please sign in to comment.