$string[nameteacher] = "Teacher forum";
$string[nodiscussions] = "There are no discussion topics yet in this forum";
$string[noposts] = "No posts";
+$string[nosubscribers] = "There are no subscribers yet for this forum";
$string[numposts] = "\$a posts";
$string[olderdiscussions] = "Older discussions";
$string[parentofthispost] = "Parent of this post";
$string[noteachersyet] = "No teachers in this course yet";
$string[notenrolled] = "\$a is not enrolled in this course.";
$string[nothingnew] = "Nothing new since your last login";
+$string[nousersyet] = "There are no users yet";
$string[now] = "now";
$string[numberweeks] = "Number of weeks/topics";
$string[numdays] = "\$a days";
print_header("$course->shortname: $strsubscribers", "$course->fullname", "$navigation");
- if (! $users = get_course_users($course->id)) {
- print_heading("No users yet");
+ if ($course->category) {
+ $users = get_course_users($course->id);
+ } else {
+ $users = get_records_sql("SELECT * from user");
+ }
+
+ if (! $users) {
+ print_heading(get_string("nousersyet"));
} else {
- print_heading("Subscribers to '$forum->name'");
+ print_heading(get_string("subscribersto","forum", "'$forum->name'"));
echo "<TABLE ALIGN=CENTER>";
$count = 0;
foreach ($users as $user) {
}
}
if (!$count) {
- echo "<TR><TD>No subscribers yet</TD></TR>";
+ echo "<TR><TD>".get_string("nosubscribers", "forum")."</TD></TR>";
}
echo "</TABLE>";
}