summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/rating.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/rating.module b/modules/rating.module
index ecfc9390a..68f18776f 100644
--- a/modules/rating.module
+++ b/modules/rating.module
@@ -66,6 +66,7 @@ function rating_gravity($id) {
$bonus -= variable_get("rating_weight_$node->type", 0);
}
+/*
$r3 = db_query("SELECT score, votes FROM comments WHERE author = '$id' AND votes > 0 AND (". time() ." - timestamp < $period) ORDER BY timestamp LIMIT $number");
while ($comment = db_fetch_object($r3)) {
$weight++;
@@ -74,6 +75,7 @@ function rating_gravity($id) {
}
$bonus += $weight / 5;
+*/
return ($votes ? ($score + $weight) / $votes + $bonus : $bonus);
}