]> sipb.mit.edu Git - ikiwiki.git/commitdiff
only linkify openids in userlink
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 04:32:36 +0000 (23:32 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 04:32:36 +0000 (23:32 -0500)
Can't use htmllink in userlink due to it being called from recentchanges
in cases where there is no configured url. It seems easist, at least for now,
to not linkify user names in this case. I don't think I've ever clicked on such
a link anyway.

Might revisit this later.

IkiWiki.pm

index 15402211f0af9c5fce989d598d79524721643f71..b326dbdb8f1c8e59576e6a57fb6a36376337ee51 100644 (file)
@@ -90,7 +90,7 @@ sub defaultconfig () { #{{{
        adminuser => undef,
        adminemail => undef,
        plugin => [qw{mdwn inline htmlscrubber passwordauth openid signinedit
-                     lockedit conditional}],
+                     lockedit conditional recentchanges}],
        libdir => undef,
        timeformat => '%c',
        locale => undef,
@@ -631,9 +631,7 @@ sub userlink ($) { #{{{
                return "<a href=\"$user\">".escapeHTML($display)."</a>";
        }
        else {
-               return htmllink("", "", escapeHTML(
-                       length $config{userdir} ? $config{userdir}."/".$user : $user
-               ), noimageinline => 1);
+               return $user;
        }
 } #}}}