diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 49e4c53cd18..30bed3c2177 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -266,7 +266,8 @@ // Output the links to neighbour discussions. $neighbours = forum_get_discussion_neighbours($cm, $discussion); - echo $renderer->neighbouring_discussion_navigation($neighbours['prev'], $neighbours['next']); + $neighbourlinks = $renderer->neighbouring_discussion_navigation($neighbours['prev'], $neighbours['next']); + echo $neighbourlinks; /// Print the controls across the top echo '