From 0bb69ab3adbf4fdba686f400deceb3fb58950289 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 18 Sep 2010 12:54:24 +0000 Subject: [PATCH] fixed broken ratings fetching --- mod/forum/lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 005ed086819..e8a3349dc91 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2056,7 +2056,8 @@ function forum_get_ratings($context, $postid, $sort="u.firstname ASC") { $options->itemid = $postid; $options->sort = "ORDER BY $sort"; - get_all_ratings_for_item($options); + $rm = new rating_manager(); + $rm->get_all_ratings_for_item($options); } /**