]> git.mjollnir.org Git - moodle.git/commitdiff
tags/blog: Multiple XHTML strict problems.
authortjhunt <tjhunt>
Wed, 14 Jan 2009 08:49:35 +0000 (08:49 +0000)
committertjhunt <tjhunt>
Wed, 14 Jan 2009 08:49:35 +0000 (08:49 +0000)
blog/lib.php
tag/index.php
tag/search.php
user/tabs.php

index 86fb115c4e78c69334e45cddd683b2d6f9f99739..7b84e5ca7560cd102a4933cfe9557a6a2e8b48d7 100755 (executable)
         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;
index 4ab216c2852979e2ee7546fcbc43ec6e3f4b599e..04dbc2652b505ac42ab07cef8fde64f58c539cb5 100644 (file)
@@ -135,7 +135,7 @@ if (has_capability('moodle/blog:view', $systemcontext)) {  // You have to see bl
         }
         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&amp;filterselect=0&amp;tagid='.$tag->id.'">'.get_string('seeallblogs', 'tag', $tagname).'</a></p>';
 
         print_box_end();
     }
index 2b563c8cf5cd2d8af2640d72049b378dd9a1e576..313ca0504817750e65ec4dd78effd26b533bad9d 100644 (file)
@@ -24,7 +24,7 @@ $manage_link = '&nbsp;';
 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);
index e0ec0959b32e4981657e69665863e22d48e18c28..ff61f18c9c68971b5ed663666b9471d39132dc24 100644 (file)
@@ -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);