From 5ddf75d8bea6e12f037032adab653c098561dada Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 23 Sep 2010 12:29:48 +0000 Subject: [PATCH] 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 --- mod/assignment/mod_form.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/assignment/mod_form.php b/mod/assignment/mod_form.php index c4651b08553..133c0413f42 100644 --- a/mod/assignment/mod_form.php +++ b/mod/assignment/mod_form.php @@ -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); }