completion MDL-24119 moved a string out of the code and into a lang file
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 14 Oct 2010 08:53:02 +0000 (08:53 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 14 Oct 2010 08:53:02 +0000 (08:53 +0000)
lib/completion/completion_criteria_unenrol.php

index 8e6b2e4..af27c6f 100644 (file)
@@ -51,7 +51,7 @@ class completion_criteria_unenrol extends completion_criteria {
      * @return  void
      */
     public function config_form_display(&$mform, $data = null) {
-        $mform->addElement('checkbox', 'criteria_unenrol', 'Completion on unenrolment');
+        $mform->addElement('checkbox', 'criteria_unenrol', get_string('completiononunenrolment','completion'));
 
         if ($this->id) {
             $mform->setDefault('criteria_unenrol', 1);