Merge branch 'MDL-29983' of git://github.com/timhunt/moodle

This commit is contained in:
Aparup Banerjee 2011-11-01 13:23:03 +08:00
commit 203683e415

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());
}
}