Changeset 2400 for branches/release-38/lib/MT/Template/ContextHandlers.pm
- Timestamp:
- 05/20/08 19:22:05 (19 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/release-38/lib/MT/Template/ContextHandlers.pm
r2377 r2400 9989 9989 =cut 9990 9990 9991 # FIXME: This should be a container tag providing an author9992 # context for the comment.9993 9991 sub _hdlr_comment_author { 9994 9992 my ($ctx, $args) = @_; … … 9997 9995 or return $ctx->_no_comment_error(); 9998 9996 my $a = defined $c->author ? $c->author : ''; 9999 $a ||= $args->{default} || ''; 9997 $args->{default} = MT->translate("Anonymous") 9998 unless exists $args->{default}; 9999 $a ||= $args->{default}; 10000 10000 return remove_html($a); 10001 10001 }
