Permalink
Browse files

Minor forum formatting tweaks

  • Loading branch information...
martin
martin committed Jul 29, 2002
1 parent 944d5a3 commit 77305fe6eb7469ad30dcf63135c3ff0ee6d738f6
Showing with 7 additions and 7 deletions.
  1. +6 −6 mod/forum/lib.php
  2. +1 −1 mod/forum/view.php
View
@@ -157,6 +157,12 @@ function print_forum_latest_topics($forum_id=0, $forum_numtopics=5, $forum_style
}
}
+ if (user_can_post_discussion($forum)) {
+ echo "<P ALIGN=right>";
+ echo "<A HREF=\"$CFG->wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic...</A>";
+ echo "</P>";
+ }
+
if (! $topics = get_all_topics($forum->id, $forum_sort) ) {
echo "<P ALIGN=CENTER><B>There are no discussion topics yet in this forum.</B></P>";
@@ -193,12 +199,6 @@ function print_forum_latest_topics($forum_id=0, $forum_numtopics=5, $forum_style
}
}
}
- if (user_can_post_discussion($forum)) {
- echo "<P ALIGN=right>";
- echo "<A HREF=\"$CFG->wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic...</A>";
- echo "</P>";
- }
-
}
View
@@ -75,7 +75,7 @@
case "eachuser":
echo "<P ALIGN=CENTER>";
if (user_can_post_discussion($forum)) {
- echo "This forum allows one discussion topic to be posted per person. Click here to <A HREF=\"../discuss/post.php?forum=$forum->id\">post your topic</A>.";
+ echo "This forum allows one discussion topic to be posted per person.";
} else {
echo "&nbsp";
}

0 comments on commit 77305fe

Please sign in to comment.