From 8744529ff618b3db3757e10ac49593063cc0e91e Mon Sep 17 00:00:00 2001 From: Jetha Chan Date: Wed, 29 Oct 2014 13:46:46 +0800 Subject: [PATCH] MDL-47945 mod_forum: neighbour links at bottom of discussion --- mod/forum/discuss.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 '
'; @@ -353,6 +354,8 @@ $canrate = has_capability('mod/forum:rate', $modcontext); forum_print_discussion($course, $cm, $forum, $discussion, $post, $displaymode, $canreply, $canrate); + echo $neighbourlinks; + // Add the subscription toggle JS. $PAGE->requires->yui_module('moodle-mod_forum-subscriptiontoggle', 'Y.M.mod_forum.subscriptiontoggle.init');