Ask about emailauth: Not enough arguments for IkiWiki::cgi_getsession

master
http://anastigmatix.net/ 2016-08-14 21:50:30 -04:00 committed by admin
parent f582a0fcf2
commit 2249e803ac
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
I'm doing a (belated) update from a version before emailauth was available,
and I get the error:
Failed to load plugin IkiWiki::Plugin::emailauth: Not enough arguments for IkiWiki::cgi_getsession
and sure enough, emailauth.pm line 175 has
my $session=IkiWiki::cgi_getsession();
while `cgi_getsession` is declared in CGI.pm as
sub cgi_getsession ($) {
my $q=shift;
...
and browsing through git history, it looks like it has always been that way.
Now, I have some local mods merged in, so it is possible one of them has
broken something, but before I begin questioning my sanity, just by looking
at these lines in the unmodified ikiwiki repo, um, has this ever worked?
And, why?