Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-39800 tags: resolved weighting in block content

  • Loading branch information...
commit 1ee5db0a96803157ded0de455a605715d3b56583 1 parent c9ee1a7
@jennymgray jennymgray authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 blocks/tags/block_tags.php
View
6 blocks/tags/block_tags.php
@@ -110,12 +110,12 @@ public function get_content() {
$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) {
Please sign in to comment.
Something went wrong with that request. Please try again.