# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/mod/assignment/mod_form.php
--- moodle/mod/assignment/mod_form.php Base (1.23)
+++ moodle/mod/assignment/mod_form.php Locally Modified (Based On 1.23)
@@ -58,10 +58,10 @@
         $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);
         }
 
