Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ed77e5710f61c573daa84fce76e9c5e2c109917d 1 parent af293d2
scyrma authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  blog/lib.php
View
2  blog/lib.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.