MDL-29983 fix question_type::local_name

This commit is contained in:
Tim Hunt 2011-10-28 13:28:31 +01:00
parent 38e9a1cc79
commit d68f4d8b9f

View File

@ -75,9 +75,9 @@ class question_type {
*/
public function local_name() {
if (get_string_manager()->string_exists('pluginname', $this->plugin_name())) {
$this->displayname = get_string('pluginname', $this->plugin_name());
return get_string('pluginname', $this->plugin_name());
} else {
$this->displayname = get_string($this->name(), $this->plugin_name());
return get_string($this->name(), $this->plugin_name());
}
}