From 77305fe6eb7469ad30dcf63135c3ff0ee6d738f6 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 29 Jul 2002 09:17:14 +0000 Subject: [PATCH] Minor forum formatting tweaks --- mod/forum/lib.php | 12 ++++++------ mod/forum/view.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e8ff32a769..543054fd72 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -157,6 +157,12 @@ function print_forum_latest_topics($forum_id=0, $forum_numtopics=5, $forum_style } } + if (user_can_post_discussion($forum)) { + echo "

"; + echo "wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic..."; + echo "

"; + } + if (! $topics = get_all_topics($forum->id, $forum_sort) ) { echo "

There are no discussion topics yet in this forum.

"; @@ -193,12 +199,6 @@ function print_forum_latest_topics($forum_id=0, $forum_numtopics=5, $forum_style } } } - if (user_can_post_discussion($forum)) { - echo "

"; - echo "wwwroot/mod/discuss/post.php?forum=$forum->id\">Add a new topic..."; - echo "

"; - } - } diff --git a/mod/forum/view.php b/mod/forum/view.php index 7049132f6f..7b96547146 100644 --- a/mod/forum/view.php +++ b/mod/forum/view.php @@ -75,7 +75,7 @@ case "eachuser": echo "

"; if (user_can_post_discussion($forum)) { - echo "This forum allows one discussion topic to be posted per person. Click here to id\">post your topic."; + echo "This forum allows one discussion topic to be posted per person."; } else { echo " "; } -- 2.39.5