]> git.mjollnir.org Git - moodle.git/commitdiff
Now uses real current language (may not be the same as $CFG->lang)
authormoodler <moodler>
Sun, 13 Oct 2002 10:06:01 +0000 (10:06 +0000)
committermoodler <moodler>
Sun, 13 Oct 2002 10:06:01 +0000 (10:06 +0000)
help.php

index 95ea0942ab39a54e290b7314ac70567ca9fe05c5..97a04aa6f45bfac779bdd944f5363284e3ffac46 100644 (file)
--- a/help.php
+++ b/help.php
@@ -10,6 +10,8 @@
   optional_variable($text, "No text to display");
   optional_variable($module, "moodle");
 
+  $lang = current_language();
+
   print_header();
 
   if (ereg("\\.\\.", $file)) {
@@ -18,9 +20,9 @@
 
   if ($file) {
         if ($module == "moodle") {
-            $filepath = "$CFG->dirroot/lang/$CFG->lang/help/$file";
+            $filepath = "$CFG->dirroot/lang/$lang/help/$file";
         } else {
-            $filepath = "$CFG->dirroot/lang/$CFG->lang/help/$module/$file";
+            $filepath = "$CFG->dirroot/lang/$lang/help/$module/$file";
         }
 
         if (file_exists("$filepath")) {