[geeklog-cvs] geeklog: Ask plugins for a comment title if we don't have one (r...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 16 07:17:17 EDT 2010


changeset 7936:55f55cae20c9
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/55f55cae20c9
user: Dirk Haun <dirk at haun-online.de>
date: Sun May 16 09:14:06 2010 +0200
description:
Ask plugins for a comment title if we don't have one (related to feature request #0001031 but doesn't solve it)

diffstat:

 public_html/comment.php |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 55c81bdb1d34 -r 55f55cae20c9 public_html/comment.php
--- a/public_html/comment.php	Sat May 15 23:01:57 2010 +0200
+++ b/public_html/comment.php	Sun May 16 09:14:06 2010 +0200
@@ -465,6 +465,8 @@
             if (empty($title)) {
                 if ($type == 'article') {
                     $title = $dbTitle;
+                } else {
+                    $title = PLG_getItemInfo($type, $sid, 'title');
                 }
                 $title = str_replace ('$', '$', $title);
                 // CMT_commentForm expects non-htmlspecial chars for title...



More information about the geeklog-cvs mailing list