Remove old doclang variable

This commit is contained in:
moodler 2003-01-19 12:37:56 +00:00
parent 3db3acfb99
commit c9d4e6da89

View 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);