Show
Ignore:
Timestamp:
04/01/08 19:19:56 (20 months ago)
Author:
bchoate
Message:

Support for spam_protect attribute on AuthorEmail tag. BugId:67925

Files:
1 modified

Legend:

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

    r1668 r1677  
    32683268        or return $_[0]->_no_author_error('MTAuthorEmail'); 
    32693269    my $email = $author->email; 
    3270     defined $email ? $email : ''; 
     3270    return '' unless defined $email; 
     3271    $_[1] && $_[1]->{'spam_protect'} ? spam_protect($email) : $email; 
    32713272} 
    32723273