]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
NoticeTitle plugin: link the post title to detail view of the post
authorBrion Vibber <brion@pobox.com>
Sat, 2 Oct 2010 00:54:47 +0000 (17:54 -0700)
committerBrion Vibber <brion@pobox.com>
Sat, 2 Oct 2010 00:54:47 +0000 (17:54 -0700)
plugins/NoticeTitle/NoticeTitlePlugin.php

index 269f0618939b86b21f9df35f6d17a4d7b37deab4..a3b4489f2c6444b766fe2e96d06d6db1b1d01dd4 100644 (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;