From cc26cb3b3372467650187a226f3cdc03aaaade12 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Mon, 20 Dec 2010 10:33:23 +0800 Subject: [PATCH] MDL-10783, added span class and tag title --- mod/wiki/lang/en/wiki.php | 1 + mod/wiki/locallib.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mod/wiki/lang/en/wiki.php b/mod/wiki/lang/en/wiki.php index 68a451246a9..b8f6b83e605 100644 --- a/mod/wiki/lang/en/wiki.php +++ b/mod/wiki/lang/en/wiki.php @@ -160,6 +160,7 @@ $string['searchresult'] = 'Search results:'; $string['searchwikis'] = 'Search wikis'; $string['special'] = 'Special'; $string['tagsdeleted'] = 'Wiki tags have been deleted'; +$string['tagtitle'] = 'See the "{$a}" tag'; $string['teacherrating'] = 'Teacher rating'; $string['timesrating']='This page has been rated {$a->c} times with an average of: {$a->s}'; $string['updatedpages'] = "Updated pages"; diff --git a/mod/wiki/locallib.php b/mod/wiki/locallib.php index 72315caa256..6f077953016 100644 --- a/mod/wiki/locallib.php +++ b/mod/wiki/locallib.php @@ -1195,11 +1195,11 @@ function wiki_print_page_content($page, $context, $subwikiid) { if (!empty($CFG->usetags)) { $tags = tag_get_tags_array('wiki_pages', $page->id); echo $OUTPUT->container_start('wiki-tags'); - echo ''.get_string('tags').': '; + echo ''.get_string('tags').': '; $links = array(); foreach ($tags as $tagid=>$tag) { $url = new moodle_url('/tag/index.php', array('tag'=>$tag)); - $links[] = html_writer::link($url, $tag); + $links[] = html_writer::link($url, $tag, array('title'=>get_string('tagtitle', 'wiki', $tag))); } echo join($links, ", "); echo $OUTPUT->container_end();