bugfix
Always load IkiWiki::CGI so its cgi_signin is present, so we replace it.master
parent
dc0d48459c
commit
1e75389a85
|
@ -23,9 +23,9 @@ sub checkconfig () {
|
||||||
#
|
#
|
||||||
# When other auth hooks are registered, give the selector
|
# When other auth hooks are registered, give the selector
|
||||||
# a reference to the normal signin form.
|
# a reference to the normal signin form.
|
||||||
|
require IkiWiki::CGI;
|
||||||
my $real_cgi_signin;
|
my $real_cgi_signin;
|
||||||
if (keys %{$IkiWiki::hooks{auth}} > 1) {
|
if (keys %{$IkiWiki::hooks{auth}} > 1) {
|
||||||
require IkiWiki::CGI;
|
|
||||||
$real_cgi_signin=\&IkiWiki::cgi_signin;
|
$real_cgi_signin=\&IkiWiki::cgi_signin;
|
||||||
}
|
}
|
||||||
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {
|
inject(name => "IkiWiki::cgi_signin", call => sub ($$) {
|
||||||
|
|
Loading…
Reference in New Issue