Changeset 2450 for branches/release-39/php/lib/function.mtcommentlink.php
- Timestamp:
- 05/28/08 07:11:02 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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
