diff --git a/mod/forum/lib.php b/mod/forum/lib.php index e8ff32a7698..543054fd722 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 7049132f6f0..7b96547146b 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 " "; }