]> git.mjollnir.org Git - moodle.git/commitdiff
Typo in variable
authormoodler <moodler>
Thu, 14 Nov 2002 11:48:01 +0000 (11:48 +0000)
committermoodler <moodler>
Thu, 14 Nov 2002 11:48:01 +0000 (11:48 +0000)
lib/moodlelib.php

index 59457cd12bd3fc458b7dd885437843f2478d8cfa..7b31b62288cd83e3fa411e0d3ee5645862393624 100644 (file)
@@ -1578,8 +1578,8 @@ function email_to_user($user, $from, $subject, $messagetext, $messagehtml="", $a
     $mail->PluginDir = "$CFG->libdir/phpmailer/";      // plugin directory (eg smtp plugin)
 
 
-    if ($CFG->lang != "en") {
-        $mail->Charset = get_string("thischarset");
+    if (current_language() != "en") {
+        $mail->CharSet = get_string("thischarset");
     }
 
     if ($CFG->smtphosts) {