mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-8119 : Improvements to logging where Mnet hosts are involved
Merged from MOODLE_18_STABLE
This commit is contained in:
parent
6cdd0f9c93
commit
bd5d0ce540
@ -243,6 +243,9 @@ function make_log_url($module, $url) {
|
||||
case 'admin':
|
||||
case 'message':
|
||||
case 'calendar':
|
||||
case 'mnet course':
|
||||
return "/course/$url";
|
||||
break;
|
||||
case 'blog':
|
||||
return "/$module/$url";
|
||||
break;
|
||||
@ -508,7 +511,11 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
|
||||
echo '<tr class="r'.$row.'">';
|
||||
if ($course->id == SITEID) {
|
||||
echo "<td class=\"cell c0\">\n";
|
||||
echo " <a href=\"{$CFG->wwwroot}/course/view.php?id={$log->course}\">". format_string($courses[$log->course])."</a>\n";
|
||||
if (empty($log->course)) {
|
||||
echo format_string($log->info)."\n";
|
||||
} else {
|
||||
echo " <a href=\"{$CFG->wwwroot}/course/view.php?id={$log->course}\">". format_string($courses[$log->course])."</a>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
}
|
||||
echo "<td class=\"cell c1\" align=\"right\">".userdate($log->time, '%a').
|
||||
|
Loading…
x
Reference in New Issue
Block a user