MDL-53700 competency: Migrating settings to core

This commit is contained in:
Frederic Massart
2016-04-18 11:05:59 +08:00
parent 5a1a685c28
commit 6be1373ee0
14 changed files with 99 additions and 36 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ class api {
* @return boolean True when enabled.
*/
public static function is_enabled() {
return get_config('tool_lp', 'enabled');
return get_config('core_competency', 'enabled');
}
/**
@@ -63,7 +63,7 @@ class api {
*/
public static function require_enabled() {
if (!static::is_enabled()) {
throw new moodle_exception('competenciesarenotenabled', 'tool_lp');
throw new moodle_exception('competenciesarenotenabled', 'core_competency');
}
}