global $USER, $CFG, $COURSE, $DB;
$template['body'] = format_text($blogEntry->summary, $blogEntry->format);
- $template['title'] = '<a id=b"'. s($blogEntry->id) .'" />';
+ $template['title'] = '<a id="b'. s($blogEntry->id) .'" />';
//enclose the title in nolink tags so that moodle formatting doesn't autolink the text
$template['title'] .= '<span class="nolink">'. format_string($blogEntry->subject) .'</span>';
$template['userid'] = $blogEntry->userid;
}
echo '</ul>';
- echo '<p class="moreblogs"><a href="'.$CFG->wwwroot.'/blog/index.php?filtertype=site&filterselect=0&tagid='.$tag->id.'">'.get_string('seeallblogs', 'tag', $tagname).'</a></p>';
+ echo '<p class="moreblogs"><a href="'.$CFG->wwwroot.'/blog/index.php?filtertype=site&filterselect=0&tagid='.$tag->id.'">'.get_string('seeallblogs', 'tag', $tagname).'</a></p>';
print_box_end();
}
print_header_simple(get_string('tags', 'tag'), '', $navigation);
if ( has_capability('moodle/tag:manage',$systemcontext) ) {
- echo '<div class="managelink"><a href='. $CFG->wwwroot .'/tag/manage.php>' . get_string('managetags', 'tag') . '</a></div>' ;
+ echo '<div class="managelink"><a href="'. $CFG->wwwroot .'/tag/manage.php">' . get_string('managetags', 'tag') . '</a></div>' ;
}
print_heading(get_string('searchtags', 'tag'), '', 2);
$inactive = NULL;
$activetwo = NULL;
$toprow = array();
+ $systemcontext = get_context_instance(CONTEXT_SYSTEM);
/**************************************
* Site Level participation or Blogs *
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'));
}
}
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);