Now xxx_print_recent_mod_activity() supports filterall.
(assignment, forum, quiz and workshop)
This commit is contained in:
@@ -753,12 +753,11 @@ function assignment_print_recent_mod_activity($activity, $course, $detail=false)
|
||||
print_user_picture($activity->user->userid, $course, $activity->user->picture);
|
||||
echo "</td><td width=\"100%\"><font size=2>";
|
||||
|
||||
|
||||
if ($detail) {
|
||||
echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
|
||||
"height=16 width=16 alt=\"$activity->type\"> ";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/assignment/view.php?id=" . $activity->instance . "\">"
|
||||
. $activity->name . "</a> - ";
|
||||
. format_string($activity->name,true) . "</a> - ";
|
||||
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -2956,12 +2956,12 @@ function forum_print_recent_mod_activity($activity, $course, $detail=false) {
|
||||
|
||||
if ($detail) {
|
||||
echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
|
||||
"height=\"16\" width=\"16\" alt=\"$activity->name\" /> ";
|
||||
"height=\"16\" width=\"16\" alt=\"".strip_tags(format_string($activity->name,true))."\" /> ";
|
||||
}
|
||||
echo "<a href=\"$CFG->wwwroot/mod/forum/discuss.php?d=" . $activity->content->discussion
|
||||
. "#" . $activity->content->id . "\">";
|
||||
|
||||
echo $activity->content->subject;
|
||||
echo format_string($activity->content->subject,true);
|
||||
echo "</a>$closeformat";
|
||||
|
||||
echo "<br /><font size=\"2\">";
|
||||
|
||||
+1
-1
@@ -457,7 +457,7 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {
|
||||
echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
|
||||
"height=\"16\" width=\"16\" alt=\"$activity->type\" /> ";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/quiz/view.php?id=" . $activity->instance . "\">"
|
||||
. $activity->name . "</a> - ";
|
||||
. format_string($activity->name,true) . "</a> - ";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1087,7 +1087,7 @@ function workshop_print_recent_mod_activity($activity, $course, $detail=false) {
|
||||
|
||||
echo '<table border="0" cellpadding="3" cellspacing="0">';
|
||||
|
||||
if ($activity->content->parent) {
|
||||
if (!empty($activity->content->parent)) {
|
||||
$openformat = "<font size=\"2\"><i>";
|
||||
$closeformat = "</i></font>";
|
||||
} else {
|
||||
@@ -1101,7 +1101,7 @@ function workshop_print_recent_mod_activity($activity, $course, $detail=false) {
|
||||
|
||||
if ($detail) {
|
||||
echo "<img src=\"$CFG->modpixpath/$activity->type/icon.gif\" ".
|
||||
"height=\"16\" width=\"16\" alt=\"$activity->name\" /> ";
|
||||
"height=\"16\" width=\"16\" alt=\"".strip_tags(format_string($activity->name,true))."\" /> ";
|
||||
}
|
||||
echo "<a href=\"$CFG->wwwroot/mod/workshop/view.php?"
|
||||
. "#" . $activity->content->id . "\">".$activity->content->title;
|
||||
|
||||
Reference in New Issue
Block a user