diff --git a/blocks/tags/block_tags.php b/blocks/tags/block_tags.php index 8a0529188ea..10356140fc6 100644 --- a/blocks/tags/block_tags.php +++ b/blocks/tags/block_tags.php @@ -111,10 +111,10 @@ class block_tags extends block_base { $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'); - } else if ($tagtype=='course') { + } else if ($tagtype == 'course') { $tags = coursetag_get_tags($this->page->course->id, 0, $this->config->tagtype, $this->config->numberoftags, 'name'); $moretags->param('courseid', $this->page->course->id); - } else if ($tagtype=='my') { + } else if ($tagtype == 'my') { $tags = coursetag_get_tags(0, $USER->id, $this->config->tagtype, $this->config->numberoftags, 'name'); } $tagcloud = tag_print_cloud($tags, 150, true); @@ -142,7 +142,7 @@ class block_tags extends block_base { has_capability('moodle/tag:create', context_course::instance($this->page->course->id))) { $buttonadd = get_string('add', 'block_tags'); $arrowtitle = get_string('arrowtitle', 'block_tags'); - $edit_tags = get_string('edittags', 'block_tags'); + $edittags = get_string('edittags', 'block_tags'); $sesskey = sesskey(); $arrowright = $OUTPUT->pix_url('t/arrow_left'); $redirect = $this->page->url->out(); @@ -173,7 +173,7 @@ class block_tags extends block_base {
- $edit_tags + $edittags
@@ -190,4 +190,4 @@ EOT; return $this->content; } -} \ No newline at end of file +} diff --git a/tag/locallib.php b/tag/locallib.php index 56e9e0f8ea5..857c175f7ff 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -37,8 +37,6 @@ require_once($CFG->libdir.'/filelib.php'); * @param bool $return if true the function will return the generated tag cloud instead of displaying it. * @return string|null a HTML string or null if this function does the output */ -//TODO question for integrator - for contrib work would it be best to add $tagset at the end of the parameter list -// not the beginning? I put it at the beginning because it sits better as alternative to $nr_of_tags there function tag_print_cloud($tagset=null, $nr_of_tags=150, $return=false) { global $CFG, $DB;