Permalink
Browse files

Merged from MOODLE_14_STABLE - Reverting validation in current_langua…

…ge() due to performance concerns.
  • Loading branch information...
martinlanghoff
martinlanghoff committed Jan 27, 2005
1 parent 744fd5b commit af4e9e5fd4c31e3719d633d7903729107e13989d
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/moodlelib.php
View
@@ -3281,16 +3281,16 @@ function current_language() {
global $CFG, $USER, $SESSION;
if (!empty($CFG->courselang)) { // Course language can override all other settings for this page
- return clean_param($CFG->courselang, PARAM_FILE);
+ return $CFG->courselang;
} else if (!empty($SESSION->lang)) { // Session language can override other settings
- return clean_param($SESSION->lang, PARAM_FILE);
+ return $SESSION->lang;
} else if (!empty($USER->lang)) { // User language can override site language
- return clean_param($USER->lang, PARAM_FILE);
+ return $USER->lang;
} else {
- return clean_param($CFG->lang, PARAM_FILE);
+ return $CFG->lang;
}
}

0 comments on commit af4e9e5

Please sign in to comment.