]> git.mjollnir.org Git - moodle.git/commitdiff
Moving some strings to make them available in all the script. Not really sure about...
authorstronk7 <stronk7>
Thu, 3 Feb 2005 23:19:54 +0000 (23:19 +0000)
committerstronk7 <stronk7>
Thu, 3 Feb 2005 23:19:54 +0000 (23:19 +0000)
mod/glossary/edit.php

index a786cf401e67c2a864d534bf7a8fbc95ec006cce..7293685b561f7aa8933c15e16cb7535a24b07d5b 100644 (file)
@@ -68,12 +68,12 @@ if ( $confirm ) {
         $newentry->approved = 1;
     }
 
+    $strglossary = get_string("modulename", "glossary");
+    $strglossaries = get_string("modulenameplural", "glossary");
+    $stredit = get_string("edit");
+
     if ($form->concept == '' or trim($form->text) == '' ) {
         $errors = get_string('fillfields','glossary');
-        $strglossary = get_string("modulename", "glossary");
-        $strglossaries = get_string("modulenameplural", "glossary");
-        $stredit = get_string("edit");
-
         if ($usehtmleditor = can_use_richtext_editor()) {
             $defaultformat = FORMAT_HTML;
         } else {