Permalink
Browse files

Fixed incorrect display of time

  • Loading branch information...
1 parent 1e23ed0 commit 3819ed3115888d97101bb87ccd9d9c50a6f0d87b selliott committed Feb 23, 2004
Showing with 3 additions and 5 deletions.
  1. +2 −4 course/lib.php
  2. +1 −1 course/recent.php
View
@@ -214,16 +214,14 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0,
} else {
$day = $strdays;
}
- $selecteddate = time() - ($count * 3600 * 24);
+ $tmpdate = time() - ($count * 3600 * 24);
$heading = $heading .
- "<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&date=$selecteddate\"> $count $day</a> | ";
+ "<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&date=$tmpdate\"> $count $day</a> | ";
}
$heading = $strsince . ": <a href=\"$CFG->wwwroot/course/recent.php?id=$course->id\">$strlastlogin</a>" . " | " . $heading;
print_heading($heading);
- print_heading(get_string("activitysince", "", userdate($selecteddate)));
-
$advancedlink = "<a href=\"$CFG->wwwroot/course/recent.php?id=$course->id&advancedfilter=1\">" . get_string("advancedfilter") . "</a>";
print_heading($advancedlink);
View
@@ -64,7 +64,7 @@
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strrecentactivity", "");
}
- print_heading(get_string("choosereportfilter").":");
+ print_heading(get_string("activitysince", "", userdate($date)));
print_recent_selector_form($course, $advancedfilter);

0 comments on commit 3819ed3

Please sign in to comment.