From: tjhunt Date: Thu, 30 Apr 2009 04:16:35 +0000 (+0000) Subject: completion: avoid API call for performance reasons X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f0ad741e1f75c2c731745cbe3dca932756ff66e8;p=moodle.git completion: avoid API call for performance reasons --- diff --git a/admin/settings/courses.php b/admin/settings/courses.php index 5bef017b7d..a131cf4621 100644 --- a/admin/settings/courses.php +++ b/admin/settings/courses.php @@ -112,7 +112,7 @@ if ($hassiteconfig $languages += get_list_of_languages(); $temp->add(new admin_setting_configselect('moodlecourse/lang', get_string('forcelanguage'), '',key($languages),$languages)); - if(completion_info::is_enabled_for_site()) { + if(!empty($CFG->enablecompletion)) { $temp->add(new admin_setting_heading('progress', get_string('progress','completion'), '')); $temp->add(new admin_setting_configselect('moodlecourse/enablecompletion', get_string('completion','completion'), '', 1,array(0 => get_string('completiondisabled','completion'), 1 => get_string('completionenabled','completion'))));