MDL-51638 tool_lp: Display the taxonomy terms where relevant

This commit is contained in:
Frederic Massart
2016-04-18 10:58:36 +08:00
parent 0c65d52c7f
commit 8cb101a7d2
11 changed files with 190 additions and 30 deletions
@@ -116,10 +116,10 @@ class competency_framework extends persistent {
}
/**
* Get the translated name for a level.
* Get the constant name for a level.
*
* @param int $level The level of the term.
* @return lang_string
* @return string
*/
public function get_taxonomy($level) {
$taxonomies = $this->get_taxonomies();
@@ -131,7 +131,7 @@ class competency_framework extends persistent {
$constant = $taxonomies[$level];
}
return self::get_taxonomy_from_constant($constant);
return $constant;
}
/**