Added fix for comment_author_self (cp. http://board.s9y.org/viewtopic.php?f=10&t=19115)
This commit is contained in:
parent
61a85c28f8
commit
cda50f40fa
@ -272,6 +272,7 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
|
|||||||
e.timestamp AS entrytimestamp,
|
e.timestamp AS entrytimestamp,
|
||||||
e.id AS entryid,
|
e.id AS entryid,
|
||||||
e.authorid,
|
e.authorid,
|
||||||
|
e.author as entryauthor,
|
||||||
co.id AS commentid,
|
co.id AS commentid,
|
||||||
co.parent_id AS parent_id,
|
co.parent_id AS parent_id,
|
||||||
co.status
|
co.status
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<h2 class="visuallyhidden">{$CONST.COMMENTS}</h2>
|
<h2 class="visuallyhidden">{$CONST.COMMENTS}</h2>
|
||||||
{foreach from=$comments_by_authors item="entry_comments"}
|
{foreach from=$comments_by_authors item="entry_comments"}
|
||||||
<article class="clearfix serendipity_entry">
|
<article class="clearfix serendipity_entry{if $entry_comments.entryauthor == $entry_comments.author} serendipity_comment_author_self{/if}">
|
||||||
<h3><a href="{$entry_comments.link}">{$entry_comments.title|@default:$entry_comments.link}</a></h3>
|
<h3><a href="{$entry_comments.link}">{$entry_comments.title|@default:$entry_comments.link}</a></h3>
|
||||||
<div class="comments_for_entry">{$entry_comments.tpl_comments}</div>
|
<div class="comments_for_entry">{$entry_comments.tpl_comments}</div>
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user