Changeset 2400
- Timestamp:
- 05/20/08 19:22:05 (18 months ago)
- Location:
- branches/release-38
- Files:
-
- 2 modified
-
lib/MT/Template/ContextHandlers.pm (modified) (2 diffs)
-
php/lib/function.mtcommentauthor.php (modified) (1 diff)
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 } -
branches/release-38/php/lib/function.mtcommentauthor.php
r2395 r2400 20 20 if (isset($args['default'])) 21 21 $a or $a = $args['default']; 22 else { 23 global $mt; 24 $a or $a = $mt->translate("Anonymous"); 25 } 22 26 $a or $a = ''; 23 27 return strip_tags($a);
