From 555ad195a07f303b6e2debdaf1ea4ecea60f9417 Mon Sep 17 00:00:00 2001 From: Jenny Gray Date: Mon, 8 Jul 2013 14:49:15 +0100 Subject: [PATCH] MDL-39800 tags: resolved weighting in block content --- blocks/tags/block_tags.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blocks/tags/block_tags.php b/blocks/tags/block_tags.php index 10356140fc6..12a9dd9f6d4 100644 --- a/blocks/tags/block_tags.php +++ b/blocks/tags/block_tags.php @@ -110,12 +110,12 @@ class block_tags extends block_base { $content = ''; $moretags = new moodle_url('/tag/coursetags_more.php', array('show'=>$tagtype)); if ($tagtype == 'all') { - $tags = coursetag_get_tags(0, 0, $this->config->tagtype, $this->config->numberoftags, 'name'); + $tags = coursetag_get_tags(0, 0, $this->config->tagtype, $this->config->numberoftags, 'popularity'); } else if ($tagtype == 'course') { - $tags = coursetag_get_tags($this->page->course->id, 0, $this->config->tagtype, $this->config->numberoftags, 'name'); + $tags = coursetag_get_tags($this->page->course->id, 0, $this->config->tagtype, $this->config->numberoftags, 'popularity'); $moretags->param('courseid', $this->page->course->id); } else if ($tagtype == 'my') { - $tags = coursetag_get_tags(0, $USER->id, $this->config->tagtype, $this->config->numberoftags, 'name'); + $tags = coursetag_get_tags(0, $USER->id, $this->config->tagtype, $this->config->numberoftags, 'popularity'); } $tagcloud = tag_print_cloud($tags, 150, true); if (!$tagcloud) {