mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 20:53:53 +01:00
Remove old doclang variable
This commit is contained in:
parent
3db3acfb99
commit
c9d4e6da89
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user