]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
indentation
authorJoey Hess <joey@kitenet.net>
Wed, 30 Mar 2011 14:48:57 +0000 (10:48 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 30 Mar 2011 14:48:57 +0000 (10:48 -0400)
IkiWiki/Plugin/comments.pm

index bccb977e3b3e06e21175575d587727c327778e55..df20e7b966434701b32800c232b000e7826dc20c 100755 (executable)
@@ -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);
                        }