diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-09-28 06:16:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-09-28 06:16:13 +0000 |
commit | bab0a9a2bd1a73e25c009ea1098fee8246ded01f (patch) | |
tree | 166278901ebdd2c7593aa2ae2c2aef04f03e440c /modules | |
parent | 4a0e498f52106b29d4adae0aaf7e1a6d55f8fd68 (diff) | |
download | brdo-bab0a9a2bd1a73e25c009ea1098fee8246ded01f.tar.gz brdo-bab0a9a2bd1a73e25c009ea1098fee8246ded01f.tar.bz2 |
- bugfix
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rating.module | 2 |
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); } |