assignment MDL-24240 set the assignment type plugin title string to produce notice for the subplugin's lang pack, removed notice for core lang pack

This commit is contained in:
Aparup Banerjee
2010-09-23 12:29:48 +00:00
parent 84ab3289ea
commit 5ddf75d8be
+3 -3
View File
@@ -58,10 +58,10 @@ class mod_assignment_mod_form extends moodleform_mod {
$mform->addElement('select', 'preventlate', get_string('preventlate', 'assignment'), $ynoptions);
$mform->setDefault('preventlate', 0);
$typetitle = get_string('type'.$type, 'assignment');
// hack to support pluggable assignment type titles
if ($typetitle === '[[type'.$type.']]') {
if (get_string_manager()->string_exists('type'.$type, 'assignment')) {
$typetitle = get_string('type'.$type, 'assignment');
} else {
$typetitle = get_string('type'.$type, 'assignment_'.$type);
}