foreach my $admin (@{$config{adminuser}}) {
if (pagespec_match($page, IkiWiki::userinfo_get($admin, "locked_pages"))) {
if (! defined $user ||
- ! userinfo_get($session->param("name"), "regdate")) {
+ ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
return sub { IkiWiki::needsignin($cgi, $session) };
}
else {
# hook runs last, so that any hooks that don't need the user to
# signin can override this.
if (! defined $session->param("name") ||
- ! userinfo_get($session->param("name"), "regdate")) {
+ ! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
return sub { IkiWiki::needsignin($cgi, $session) };
}
else {