Permalink
Browse files

MDL-14569 - Don't count related tags for the tag cloud formatting and…

… count display
  • Loading branch information...
scyrma
scyrma committed Apr 30, 2008
1 parent 0dd41b1 commit 3ceeb19d3c40b44909c5f127d846a45206bdda25
Showing with 1 addition and 0 deletions.
  1. +1 −0 tag/locallib.php
View
@@ -23,6 +23,7 @@ function tag_print_cloud($nr_of_tags=150, $return=false) {
if ( !$tagcloud = get_records_sql('SELECT tg.rawname, tg.id, tg.name, tg.tagtype, COUNT(ti.id) AS count, tg.flag '.
'FROM '. $CFG->prefix .'tag_instance ti INNER JOIN '. $CFG->prefix .'tag tg ON tg.id = ti.tagid '.
'WHERE ti.itemtype != \'tag\' '.
'GROUP BY tg.id, tg.rawname, tg.name, tg.flag, tg.tagtype '.
'ORDER BY count DESC, tg.name ASC', 0, $nr_of_tags) ) {
$tagcloud = array();

0 comments on commit 3ceeb19

Please sign in to comment.