diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-30 10:48:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-30 10:48:57 -0400 |
commit | c8cf2d1ed791e56d6b3c0191c0a9ba8c8ce59868 (patch) | |
tree | 7df6035adfc10e68408d7e2c4b637bc550e7268f /IkiWiki | |
parent | ea166ca334934a5950ee4756a7291fc69961e77c (diff) |
indentation
Diffstat (limited to 'IkiWiki')
-rwxr-xr-x | IkiWiki/Plugin/comments.pm | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index bccb977e3..df20e7b96 100755 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -189,16 +189,15 @@ sub preprocess { $commentauthor = $commentuser; } - eval 'use Libravatar::URL'; - - if (! $@) { - if (defined $commentopenid) { - $commentauthoravatar = libravatar_url(openid => $commentopenid, https => $ENV{HTTPS}); - } - elsif (my $email = IkiWiki::userinfo_get($commentuser, 'email')) { - $commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS}); - } - } + eval 'use Libravatar::URL'; + if (! $@) { + if (defined $commentopenid) { + $commentauthoravatar = libravatar_url(openid => $commentopenid, https => $ENV{HTTPS}); + } + elsif (my $email = IkiWiki::userinfo_get($commentuser, 'email')) { + $commentauthoravatar = libravatar_url(email => $email, https => $ENV{HTTPS}); + } + } } else { if (defined $params{ip}) { @@ -229,7 +228,7 @@ sub preprocess { my $url=$params{url}; eval q{use URI::Heuristic}; - if (! $@) { + if (! $@) { $url=URI::Heuristic::uf_uristr($url); } |