Always load IkiWiki::CGI so its cgi_signin is present, so we replace it.
master
Joey Hess 2010-05-07 21:28:59 -04:00
parent dc0d48459c
commit 1e75389a85
1 changed files with 1 additions and 1 deletions

View File

@ -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 ($$) {