Permalink
Browse files

MDL-15392: preventing duplicate #id in blog entries list

  • Loading branch information...
1 parent af293d2 commit ed77e5710f61c573daa84fce76e9c5e2c109917d scyrma committed Jun 30, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/lib.php
View
@@ -144,7 +144,7 @@ function blog_print_entry($blogEntry, $viewtype='full', $filtertype='', $filters
global $USER, $CFG, $COURSE, $ME;
$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;

0 comments on commit ed77e57

Please sign in to comment.