MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core

This commit is contained in:
Ankit Agarwal
2013-07-04 15:41:06 +08:00
parent 85b2e46f23
commit 0601e0eef6
40 changed files with 57 additions and 57 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ if (isset($create_template_formdata->savetemplate) && $create_template_formdata-
$savereturn = 'notsaved_name';
} else {
//If the feedback is located on the frontpage then templates can be public.
if (has_capability('mod/feedback:createpublictemplate', get_system_context())) {
if (has_capability('mod/feedback:createpublictemplate', context_system::instance())) {
$create_template_formdata->ispublic = isset($create_template_formdata->ispublic) ? 1 : 0;
} else {
$create_template_formdata->ispublic = 0;