]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/openid.pm
bugfix
[git.ikiwiki.info.git] / IkiWiki / Plugin / openid.pm
index 427d614578bf7c5a9f4bdf64e83f45f28f23a6e2..7e4d0844ac3ead92a6c36a060f05597da9784d18 100644 (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 ($$) {