NoticeTitle plugin: link the post title to detail view of the post

This commit is contained in:
Brion Vibber 2010-10-01 17:54:47 -07:00
parent 5c19d33b27
commit 5c2b073a50
1 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,9 @@ class NoticeTitlePlugin extends Plugin
$title = Notice_title::fromNotice($nli->notice);
if (!empty($title)) {
$nli->out->element('h4', array('class' => 'notice_title'), $title);
$nli->out->elementStart('h4', array('class' => 'notice_title'));
$nli->out->element('a', array('href' => $nli->notice->bestUrl()), $title);
$nli->out->elementEnd('h4');
}
return true;