diff --git a/course/lib.php b/course/lib.php
index 5ac4831853d..109f76a542c 100644
--- a/course/lib.php
+++ b/course/lib.php
@@ -30,7 +30,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
asort($users);
// Get all the possible dates
- $tt = getdate(time());
+ $tt = usergetdate(time());
$timemidnight = $today = mktime (0, 0, 0, $tt["mon"], $tt["mday"], $tt["year"]);
$dates = array("$today" => "Today, ".userdate($today, "j F Y") );
@@ -104,7 +104,7 @@ function print_log($course, $user=0, $date=0, $order="ORDER BY l.time ASC") {
echo "
";
echo "| ".userdate($log->time, "l")." | ";
echo "".userdate($log->time, "j M Y, h:i A")." | ";
- echo "$log->firstname $log->lastname | ";
+ echo "ip\" HREF=\"../user/view.php?id=$log->user&course=$log->course\">$log->firstname $log->lastname | ";
echo "";
link_to_popup_window( make_log_url($log->module,$log->url), "fromloglive","$log->module $log->action", 400, 600);
echo " | ";
diff --git a/course/log.php b/course/log.php
index d4ddf59e61f..793daec786f 100644
--- a/course/log.php
+++ b/course/log.php
@@ -31,7 +31,7 @@
$dateinfo = userdate($date, "l, j F Y");
}
- print_header("$course->shortname: Logs", "$course->shortname : Logs",
+ print_header("$course->shortname: Logs", "$course->fullname",
"id\">$course->shortname ->
id\">Logs -> Logs for $userinfo, $dateinfo", "");
@@ -43,7 +43,7 @@
} else {
- print_header("$course->shortname: Logs", "$course->shortname : Logs",
+ print_header("$course->shortname: Logs", "$course->fullname",
"id\">$course->shortname -> Logs", "");
print_heading("Choose which logs you want to look at");
diff --git a/lib/weblib.php b/lib/weblib.php
index 0a695c86521..409ad29df71 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -149,10 +149,10 @@ function link_to_popup_window ($url, $name="popup", $linkname="click here", $hei
echo "\n";
- echo "\n\n";
+ echo "\n\n";
}