From 5c0ee23cc39f327906a519070fa69cbf70622a10 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 13 Oct 2002 10:06:01 +0000 Subject: [PATCH] Now uses real current language (may not be the same as $CFG->lang) --- help.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/help.php b/help.php index 95ea0942ab3..97a04aa6f45 100644 --- 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")) {