Skip to content
Browse files

Fix for bug 2945.

  • Loading branch information...
1 parent 74c8399 commit 4498266e5b0cdc6693c2d6a73002bee0015559c1 defacer committed Apr 19, 2005
Showing with 6 additions and 6 deletions.
  1. +6 −6 course/format/social/format.php
View
12 course/format/social/format.php
@@ -33,16 +33,16 @@
echo "<td width=\"*\" valign=\"top\">";
if ($social = forum_get_course_forum($course->id, "social")) {
- if (forum_is_subscribed($USER->id, $social->id)) {
- $subtext = get_string("unsubscribe", "forum");
+ if (forum_is_forcesubscribed($social->id)) {
+ $subtext = get_string('everyoneissubscribed', 'forum');
+ } else if (forum_is_subscribed($USER->id, $social->id)) {
+ $subtext = '<a href="../mod/forum/subscribe.php?id='.$social->id.'">'.get_string('unsubscribe', 'forum').'</a>';
} else {
- $subtext = get_string("subscribe", "forum");
+ $subtext = '<a href="../mod/forum/subscribe.php?id='.$social->id.'">'.get_string('subscribe', 'forum').'</a>';
}
$headertext = "<table border=0 width=100% cellpadding=0 cellspacing=0 class=headingblockcontent><tr><td>".
get_string("socialheadline").
- "</td><td align=right><font size=1>".
- "<a href=\"../mod/forum/subscribe.php?id=$social->id\">$subtext</a></td>".
- "</tr></table>";
+ "</td><td align=right><font size='1'>$subtext</font></td></tr></table>";
print_heading_block($headertext);
echo "<img alt=\"\" height=7 src=\"../pix/spacer.gif\"><br>";

0 comments on commit 4498266

Please sign in to comment.
Something went wrong with that request. Please try again.