From: scyrma Date: Wed, 30 Apr 2008 08:51:56 +0000 (+0000) Subject: MDL-14569 - Don't count related tags for the tag cloud formatting and count display... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cae8a110e934ca212e24341cf0f51a88fba1db3c;p=moodle.git MDL-14569 - Don't count related tags for the tag cloud formatting and count display (merge from 1.9) --- diff --git a/tag/locallib.php b/tag/locallib.php index 2a274133c4..635e75ffd2 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -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();