Commit c53d198a authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

Merge branch 'groupforums' of git+ssh://git.catalyst.net.nz/var/git/mahara into groupforums

parents d7cf0086 6d9b66f7
......@@ -156,6 +156,7 @@ $smarty->display('interaction:forum:topic.tpl');
function buildthread($parent, $parentsubject, &$posts){
global $moderator;
global $topic;
$localposts = $posts;
if ($posts[$parent]->subject) {
$parentsubject = $posts[$parent]->subject;
}
......@@ -163,7 +164,7 @@ function buildthread($parent, $parentsubject, &$posts){
$posts[$parent]->subject = get_string('re', 'interaction.forum', $parentsubject);
}
$children = array();
foreach ($posts as $index => $post) {
foreach ($localposts as $index => $post) {
if ($posts[$index]->parent == $posts[$parent]->id) {
$children[] = buildthread($index, $parentsubject, $posts);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment