Changeset 2371

Show
Ignore:
Timestamp:
05/16/08 23:45:11 (21 months ago)
Author:
bchoate
Message:

Return simple '#' for CommentLink when run in a preview context.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-38/lib/MT/Template/ContextHandlers.pm

    r2360 r2371  
    1019910199    my $c = $ctx->stash('comment') 
    1020010200        or return $ctx->_no_comment_error(); 
     10201    return '#' unless $c->id; 
    1020110202    my $entry = $c->entry 
    1020210203        or return $ctx->error("No entry exists for comment #" . $c->id);