summaryrefslogtreecommitdiff
path: root/plugins/NoticeTitle
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-01 17:54:47 -0700
committerBrion Vibber <brion@pobox.com>2010-10-01 17:54:47 -0700
commit5c2b073a50341be024a87f5f17f72684d3004b55 (patch)
treebafe0f37bdd363bc3caa080b88f4917cfb3bc992 /plugins/NoticeTitle
parent5c19d33b27e44449e72e5c4b8f3d21c98b31f63a (diff)
NoticeTitle plugin: link the post title to detail view of the post
Diffstat (limited to 'plugins/NoticeTitle')
-rw-r--r--plugins/NoticeTitle/NoticeTitlePlugin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NoticeTitle/NoticeTitlePlugin.php b/plugins/NoticeTitle/NoticeTitlePlugin.php
index 269f06189..a3b4489f2 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;