aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2011-03-30 10:48:57 -0400
committerJoey Hess <joey@kitenet.net>2011-03-30 10:48:57 -0400
commitc8cf2d1ed791e56d6b3c0191c0a9ba8c8ce59868 (patch)
tree7df6035adfc10e68408d7e2c4b637bc550e7268f /IkiWiki/Plugin
parentea166ca334934a5950ee4756a7291fc69961e77c (diff)
downloadikiwiki-c8cf2d1ed791e56d6b3c0191c0a9ba8c8ce59868.tar
ikiwiki-c8cf2d1ed791e56d6b3c0191c0a9ba8c8ce59868.tar.gz
indentation
Diffstat (limited to 'IkiWiki/Plugin')
-rwxr-xr-xIkiWiki/Plugin/comments.pm21
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);
}