diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-04-24 20:01:03 +0000 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-04-24 20:01:03 +0000 |
commit | c008c0d4a56ec265ba6e10d208f9954510296f12 (patch) | |
tree | fd5a1545023b9fe6aa1246a814bce91f98f08323 /lib/subscriberspeopleselftagcloudsection.php | |
parent | fe3241183e3559442003b9b70435d59126e11b7e (diff) |
fixed trac#1215, 1216, 1217 and 1219: subscribers/subscriptions people tagclouds.
Diffstat (limited to 'lib/subscriberspeopleselftagcloudsection.php')
-rw-r--r-- | lib/subscriberspeopleselftagcloudsection.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/subscriberspeopleselftagcloudsection.php b/lib/subscriberspeopleselftagcloudsection.php index b5a39c6de..115241a53 100644 --- a/lib/subscriberspeopleselftagcloudsection.php +++ b/lib/subscriberspeopleselftagcloudsection.php @@ -49,6 +49,14 @@ class SubscribersPeopleSelfTagCloudSection extends SubPeopleTagCloudSection } function query() { - return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc'; +// return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged group by tag order by weight desc'; + + + return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscriber where subscribed=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc'; + +// return 'select tag, count(tag) as weight from subscription left join profile_tag on tagger = subscribed where subscriber=%d and subscribed != subscriber and tagger = tagged and tag is not null group by tag order by weight desc'; + + } } + |