MDL-8639 fixed installation notices

This commit is contained in:
skodak
2007-02-23 20:25:16 +00:00
parent e15cc97f0f
commit fc12edcd5d
+1 -1
View File
@@ -4086,7 +4086,7 @@ function clean_filename($string) {
function current_language() {
global $CFG, $USER, $SESSION, $COURSE;
if ($COURSE->id != SITEID and !empty($COURSE->lang)) { // Course language can override all other settings for this page
if (!empty($COURSE->id) and $COURSE->id != SITEID and !empty($COURSE->lang)) { // Course language can override all other settings for this page
$return = $COURSE->lang;
} else if (!empty($SESSION->lang)) { // Session language can override other settings