Changeset 2450
- Timestamp:
- 05/28/08 07:11:02 (6 months ago)
- Files:
-
- branches/release-39/default_templates/recent_comments.mtml (modified) (1 diff)
- branches/release-39/php/lib/function.mtcommentlink.php (modified) (1 diff)
- branches/release-39/php/lib/mtdb_base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-39/default_templates/recent_comments.mtml
r2394 r2450 7 7 <ul class="recent-comments-list"> 8 8 </mt:CommentsHeader> 9 <li><__trans phrase="<a href="[_1]">[_2] commented on [_3]</a>: [_4]" params="< mt:CommentEntry><$mt:EntryPermalink$></mt:CommentEntry>#comment-<$mt:CommentID$>%%<$mt:CommentAuthor$>%%<mt:CommentEntry><$mt:EntryTitle$></mt:CommentEntry>%%<$mt:CommentBody remove_html="1" trim_to="10"$>"></li>9 <li><__trans phrase="<a href="[_1]">[_2] commented on [_3]</a>: [_4]" params="<$mt:CommentLink$>%%<$mt:CommentAuthor$>%%<mt:CommentEntry><$mt:EntryTitle$></mt:CommentEntry>%%<$mt:CommentBody remove_html="1" trim_to="10"$>"></li> 10 10 <mt:CommentsFooter> 11 11 </ul> branches/release-39/php/lib/function.mtcommentlink.php
r2366 r2450 12 12 $need_clear = false; 13 13 if (empty($e)) { 14 $e = $ctx->mt->db->fetch_entry($c['comment_entry_id']); 14 $entries = $ctx->mt->db->fetch_entries( 15 array('entry_id' => $c['comment_entry_id'], 'class' => '*')); 16 $e = $entries[0]; 15 17 $ctx->stash('entry', $e); 16 18 $need_clear = true; 17 19 } 18 $entry_link = $ctx->tag('EntryPermalink', $args); 20 if (empty($e)) return ''; 21 $entry_link = $ctx->tag($e['entry_class'].'Permalink', $args); 19 22 $entry_link .= '#comment-' . $c['comment_id']; 20 23 branches/release-39/php/lib/mtdb_base.php
r2326 r2450 749 749 } 750 750 $class_filter = "and entry_class='$class'"; 751 if ($args['class'] == '*') $class_filter = ''; 751 752 752 753 $join_score = "";
