From 565b14d248450ebd648590dab44e4b3147536722 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 14 Jan 2009 08:49:35 +0000 Subject: [PATCH] tags/blog: Multiple XHTML strict problems. --- blog/lib.php | 2 +- tag/index.php | 2 +- tag/search.php | 2 +- user/tabs.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index 86fb115c4e..7b84e5ca75 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -144,7 +144,7 @@ global $USER, $CFG, $COURSE, $DB; $template['body'] = format_text($blogEntry->summary, $blogEntry->format); - $template['title'] = 'id) .'" />'; + $template['title'] = ''; //enclose the title in nolink tags so that moodle formatting doesn't autolink the text $template['title'] .= ''. format_string($blogEntry->subject) .''; $template['userid'] = $blogEntry->userid; diff --git a/tag/index.php b/tag/index.php index 4ab216c285..04dbc2652b 100644 --- a/tag/index.php +++ b/tag/index.php @@ -135,7 +135,7 @@ if (has_capability('moodle/blog:view', $systemcontext)) { // You have to see bl } echo ''; - echo '

'.get_string('seeallblogs', 'tag', $tagname).'

'; + echo '

'.get_string('seeallblogs', 'tag', $tagname).'

'; print_box_end(); } diff --git a/tag/search.php b/tag/search.php index 2b563c8cf5..313ca05048 100644 --- a/tag/search.php +++ b/tag/search.php @@ -24,7 +24,7 @@ $manage_link = ' '; print_header_simple(get_string('tags', 'tag'), '', $navigation); if ( has_capability('moodle/tag:manage',$systemcontext) ) { - echo '' ; + echo '' ; } print_heading(get_string('searchtags', 'tag'), '', 2); diff --git a/user/tabs.php b/user/tabs.php index e0ec0959b3..ff61f18c9c 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -26,6 +26,7 @@ $inactive = NULL; $activetwo = NULL; $toprow = array(); + $systemcontext = get_context_instance(CONTEXT_SYSTEM); /************************************** * Site Level participation or Blogs * @@ -36,7 +37,7 @@ print_heading(format_string($site->fullname)); if ($CFG->bloglevel >= 4) { - if (has_capability('moodle/site:viewparticipants', get_context_instance(CONTEXT_SYSTEM))) { + if (has_capability('moodle/site:viewparticipants', $systemcontext)) { $toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID, get_string('participants')); } @@ -91,7 +92,6 @@ } print_heading(fullname($user, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id)))); - $systemcontext = get_context_instance(CONTEXT_SYSTEM); $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id); $personalcontext = get_context_instance(CONTEXT_USER, $user->id); -- 2.39.5