aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/openid.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-07 21:28:59 -0400
committerJoey Hess <joey@kitenet.net>2010-05-07 21:28:59 -0400
commit1e75389a856c8ab8e233b81fd3310169cbe8d57e (patch)
tree2a2ea3e492314edbfea3ba9b7f61d106a267f488 /IkiWiki/Plugin/openid.pm
parentdc0d48459cfc0dc53301b87c2fc98216f4dcca06 (diff)
downloadikiwiki-1e75389a856c8ab8e233b81fd3310169cbe8d57e.tar
ikiwiki-1e75389a856c8ab8e233b81fd3310169cbe8d57e.tar.gz
bugfix
Always load IkiWiki::CGI so its cgi_signin is present, so we replace it.
Diffstat (limited to 'IkiWiki/Plugin/openid.pm')
-rw-r--r--IkiWiki/Plugin/openid.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/openid.pm b/IkiWiki/Plugin/openid.pm
index 427d61457..7e4d0844a 100644
--- a/IkiWiki/Plugin/openid.pm
+++ b/IkiWiki/Plugin/openid.pm
@@ -23,9 +23,9 @@ sub checkconfig () {
#
# When other auth hooks are registered, give the selector
# a reference to the normal signin form.
+ require IkiWiki::CGI;
my $real_cgi_signin;
if (keys %{$IkiWiki::hooks{auth}} > 1) {
- require IkiWiki::CGI;
$real_cgi_signin=\&IkiWiki::cgi_signin;
}
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {