]> git.mjollnir.org Git - moodle.git/commitdiff
Remove old doclang variable
authormoodler <moodler>
Sun, 19 Jan 2003 12:37:56 +0000 (12:37 +0000)
committermoodler <moodler>
Sun, 19 Jan 2003 12:37:56 +0000 (12:37 +0000)
lib/moodlelib.php

index f19b69fc26c5551e5c75cdb8306503a789242e4f..e71c25468bb5a34e561e207938d26e436231325a 100644 (file)
@@ -999,18 +999,14 @@ function document_file($file, $include=true) {
 /// Can include a given document file (depends on second
 /// parameter) or just return info about it
 
-    global $CFG, $SESSION;
+    global $CFG;
 
     if (empty($file)) {
         echo "Error 404";
         return false;
     }
 
-    if (!empty($SESSION->doclang)) {
-        $lang = $SESSION->doclang;
-    } else {
-        $lang = current_language();
-    }
+    $lang = current_language();
 
     $file = clean_filename($file);