Skip to content

Commit

Permalink
get_context_instance() replaced with context_module::instance()
Browse files Browse the repository at this point in the history
get_context_instance() is marked as deprecated, and has to be avoided.

	modified:   view.php
  • Loading branch information
eberhardt committed Jan 14, 2014
1 parent 4ad4cdc commit 86fe86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

// [END] Etherpad Lite init

$context = get_context_instance(CONTEXT_MODULE, $cm->id);
$context = context_module::instance($cm->id);

/// Print the page header
$PAGE->set_title("Etherpad Lite: ".format_string($etherpadlite->name));
Expand Down

0 comments on commit 86fe86e

Please sign in to comment.