X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3e593eb9c0edd3f5cce7381ca145c0889441d719..a6e1274f468477cceb9b118aa5b49bd74e9385c4:/IkiWiki/Plugin/openid.pm?ds=sidebyside
diff --git a/IkiWiki/Plugin/openid.pm b/IkiWiki/Plugin/openid.pm
index 7ea67c5ca..f43c4db7f 100644
--- a/IkiWiki/Plugin/openid.pm
+++ b/IkiWiki/Plugin/openid.pm
@@ -33,8 +33,8 @@ sub formbuilder_setup (@) { #{{{
label => "OpenID",
size => 30,
comment => '('.
- htmllink("", "", "OpenID", 1, 0, "What's this?")
- .($config{openidsignup} ? " | Get an OpenID" : "")
+ htmllink("", "", "OpenID", 1, 0, gettext("What's this?"))
+ .($config{openidsignup} ? " | ".gettext("Get an OpenID")."" : "")
.')'
);
@@ -56,6 +56,12 @@ sub formbuilder_setup (@) { #{{{
}
}
}
+ elsif ($form->title eq "preferences") {
+ if (! defined $form->field(name => "name")) {
+ $form->field(name => "OpenID", disabled => 1, value =>
+ $session->param("name"), size => 30, force => 1);
+ }
+ }
}
sub validate ($$$;$) { #{{{