From: stronk7 Date: Thu, 3 Feb 2005 23:19:54 +0000 (+0000) Subject: Moving some strings to make them available in all the script. Not really sure about... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a589ccb37fe0f36007e4061882d9b1a8c8760416;p=moodle.git Moving some strings to make them available in all the script. Not really sure about changes introduced in version 1.42! Penny? --- diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index a786cf401e..7293685b56 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -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 {