MDL-17767 loginas internals refactoring - code moved to sessionlib.php

This commit is contained in:
skodak
2009-01-02 14:53:02 +00:00
parent 8d1964c4f8
commit 542797b4e8
10 changed files with 43 additions and 19 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ global $HTTPSPAGEREQUIRED;
$apachelog_name = clean_filename($USER->firstname . " " .
$USER->lastname);
}
if (isset($USER->realuser)) {
if (is_loggedinas()) {
if ($realuser = $DB->get_record('user', array('id'=>$USER->realuser))) {
$apachelog_username = clean_filename($realuser->username." as ".$apachelog_username);
$apachelog_name = clean_filename($realuser->firstname." ".$realuser->lastname ." as ".$apachelog_name);