]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15392: preventing duplicate #id in blog entries list
authorscyrma <scyrma>
Mon, 30 Jun 2008 01:51:45 +0000 (01:51 +0000)
committerscyrma <scyrma>
Mon, 30 Jun 2008 01:51:45 +0000 (01:51 +0000)
blog/lib.php

index 6f1103001f79477b8a438925a67ca6312c6879ca..c999054b1cba2c3d893047a78ee0d7837bd154ee 100755 (executable)
         global $USER, $CFG, $COURSE, $ME, $DB;
 
         $template['body'] = format_text($blogEntry->summary, $blogEntry->format);
-        $template['title'] = '<a id="'. s($blogEntry->subject) .'"></a>';
+        $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;