From 5c2b073a50341be024a87f5f17f72684d3004b55 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 1 Oct 2010 17:54:47 -0700 Subject: [PATCH] NoticeTitle plugin: link the post title to detail view of the post --- plugins/NoticeTitle/NoticeTitlePlugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php index 269f061893..a3b4489f2c 100644 --- a/plugins/NoticeTitle/NoticeTitlePlugin.php +++ b/plugins/NoticeTitle/NoticeTitlePlugin.php @@ -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;