Show
Ignore:
Timestamp:
05/28/08 07:11:02 (18 months ago)
Author:
takayama
Message:

Fixed BugId:79904
* Changed to use MTCommentLink
* Added support for filtering of no class to fetch_entries

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/php/lib/function.mtcommentlink.php

    r2366 r2450  
    1212    $need_clear = false; 
    1313    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]; 
    1517        $ctx->stash('entry', $e); 
    1618        $need_clear = true; 
    1719    } 
    18     $entry_link = $ctx->tag('EntryPermalink', $args); 
     20    if (empty($e)) return ''; 
     21    $entry_link = $ctx->tag($e['entry_class'].'Permalink', $args); 
    1922    $entry_link .= '#comment-' . $c['comment_id']; 
    2023