mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-29983 fix question_type::local_name
This commit is contained in:
parent
38e9a1cc79
commit
d68f4d8b9f
@ -75,9 +75,9 @@ class question_type {
|
|||||||
*/
|
*/
|
||||||
public function local_name() {
|
public function local_name() {
|
||||||
if (get_string_manager()->string_exists('pluginname', $this->plugin_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 {
|
} else {
|
||||||
$this->displayname = get_string($this->name(), $this->plugin_name());
|
return get_string($this->name(), $this->plugin_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user